ComfyUI  >  Nodes  >  FizzNodes >  AbsSinWave 📅🅕🅝

ComfyUI Node: AbsSinWave 📅🅕🅝

Class Name

AbsSinWave

Category
FizzNodes 📅🅕🅝/WaveNodes
Author
FizzleDorf (Account age: 1989 days)
Extension
FizzNodes
Latest Updated
6/27/2024
Github Stars
0.3K

How to Install FizzNodes

Install this extension via the ComfyUI Manager by searching for  FizzNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter FizzNodes in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

AbsSinWave 📅🅕🅝 Description

Generate smooth oscillating patterns using absolute sine function, customizable parameters for dynamic AI art waveforms.

AbsSinWave 📅🅕🅝:

The AbsSinWave node is designed to generate a waveform based on the absolute value of a sine function, which is particularly useful for creating smooth, oscillating patterns in your AI art projects. This node allows you to manipulate various parameters such as phase, amplitude, and translations to customize the waveform to your specific needs. By adjusting these parameters, you can control the shape and behavior of the wave, making it a versatile tool for adding dynamic and rhythmic elements to your creations. The main goal of the AbsSinWave node is to provide a flexible and intuitive way to generate sine-based waveforms that can be easily integrated into your artistic workflows.

AbsSinWave 📅🅕🅝 Input Parameters:

phase

The phase parameter controls the period of the sine wave, determining how many frames it takes to complete one full cycle. A higher phase value results in a longer period, while a lower value shortens the period. The default value is 1.0, with a minimum of 0.0 and a maximum of 9999.0, adjustable in steps of 1.0.

amplitude

The amplitude parameter sets the height of the wave, affecting the maximum and minimum values the wave can reach. A higher amplitude results in a taller wave, while a lower amplitude produces a shorter wave. The default value is 0.5, with a minimum of 0.0 and a maximum of 9999.0, adjustable in steps of 0.1.

x_translation

The x_translation parameter shifts the wave horizontally along the x-axis. This allows you to move the wave left or right without altering its shape. The default value is 0.0, with a minimum of 0.0 and a maximum of 9999.0, adjustable in steps of 1.0.

y_translation

The y_translation parameter shifts the wave vertically along the y-axis. This allows you to move the wave up or down, effectively changing its baseline. The default value is 0.5, with a minimum of 0.0 and a maximum of 9999.0, adjustable in steps of 0.05.

current_frame

The current_frame parameter specifies the current frame of the animation or sequence, determining the position of the wave at that particular point in time. This parameter is essential for generating dynamic, frame-by-frame waveforms. The default value is 1.0, with a minimum of 0.0 and a maximum of 9999.0, adjustable in steps of 1.0.

AbsSinWave 📅🅕🅝 Output Parameters:

FLOAT

The FLOAT output represents the calculated value of the wave at the current frame, taking into account all the input parameters. This value is a floating-point number that can be used for further processing or visualization in your project.

INT

The INT output is the integer representation of the FLOAT output. This can be useful for scenarios where an integer value is required, such as indexing or discrete steps in your workflow.

AbsSinWave 📅🅕🅝 Usage Tips:

  • Experiment with different phase and amplitude values to create a variety of waveforms, from subtle oscillations to dramatic peaks and troughs.
  • Use x_translation and y_translation to position the wave precisely within your project, ensuring it aligns with other elements or follows a specific path.
  • Animate the current_frame parameter to generate dynamic waveforms that change over time, adding movement and interest to your AI art.

AbsSinWave 📅🅕🅝 Common Errors and Solutions:

"ValueError: math domain error"

  • Explanation: This error occurs when the input values result in an invalid mathematical operation, such as taking the square root of a negative number.
  • Solution: Ensure that all input parameters are within their valid ranges and that no invalid operations are being performed. Double-check the values for phase, amplitude, x_translation, y_translation, and current_frame.

"TypeError: unsupported operand type(s)"

  • Explanation: This error happens when the input parameters are of incorrect types, such as passing a string instead of a float.
  • Solution: Verify that all input parameters are of the correct types. For example, phase, amplitude, x_translation, and y_translation should be floats, while current_frame should be an integer.

"OverflowError: numerical result out of range"

  • Explanation: This error occurs when the calculations result in a number that is too large to be represented.
  • Solution: Check the input values to ensure they are within reasonable ranges. Extremely high values for phase, amplitude, or translations can cause this error. Adjust these values to more manageable levels.

AbsSinWave 📅🅕🅝 Related Nodes

Go back to the extension to check out more related nodes.
FizzNodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.