ComfyUI  >  Nodes  >  FizzNodes >  AbsCosWave 📅🅕🅝

ComfyUI Node: AbsCosWave 📅🅕🅝

Class Name

AbsCosWave

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

AbsCosWave 📅🅕🅝 Description

Generate smooth oscillating patterns using absolute value of cosine function for AI art projects with flexible control over phase, amplitude, and translation.

AbsCosWave 📅🅕🅝:

The AbsCosWave node is designed to generate a waveform based on the absolute value of the cosine function. This node is particularly useful for creating smooth, oscillating patterns that can be applied in various AI art projects. By manipulating the parameters, you can control the phase, amplitude, and translation of the wave, allowing for a wide range of creative effects. The main goal of this node is to provide a flexible and intuitive way to generate cosine-based waveforms, which can be used to modulate other parameters or create dynamic visual effects.

AbsCosWave 📅🅕🅝 Input Parameters:

phase

The phase parameter controls the period of the cosine wave. It determines how many frames it takes for the wave to complete one full cycle. A smaller phase value results in a faster oscillation, while a larger phase value slows it down. 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. It defines the maximum deviation from the baseline value. A higher amplitude results in a more pronounced wave, while a lower amplitude creates a subtler effect. 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. This allows you to offset the wave along the x-axis, effectively changing the starting point of the wave. The default value is 0.0, with a minimum of 0.0 and a maximum of 9999.0, adjustable in steps of 1.0.

max_value

The max_value parameter sets the maximum value that the wave can reach. This acts as a ceiling for the wave's amplitude, ensuring that the output does not exceed this value. 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 number in the animation or sequence. This parameter is used to calculate the wave's value at a specific point in time. The default value is 1.0, with a minimum of 0.0 and a maximum of 9999.0, adjustable in steps of 1.0.

AbsCosWave 📅🅕🅝 Output Parameters:

FLOAT

The FLOAT output represents the calculated value of the wave at the given frame. This value is a floating-point number that can be used to modulate other parameters or create dynamic effects in your project.

INT

The INT output is the integer representation of the calculated wave value. This can be useful for scenarios where an integer value is required, such as indexing or discrete modulation.

AbsCosWave 📅🅕🅝 Usage Tips:

  • Experiment with different phase and amplitude values to create a variety of waveforms, from subtle oscillations to dramatic peaks.
  • Use the x_translation parameter to synchronize the wave with other elements in your project, ensuring a cohesive visual effect.
  • Adjust the max_value to control the upper limit of the wave, preventing it from exceeding a certain threshold and maintaining consistency in your design.

AbsCosWave 📅🅕🅝 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 the phase value is not set to zero.

"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: Double-check that all input parameters are of the correct types as specified in the documentation.

"OverflowError: numerical result out of range"

  • Explanation: This error occurs when the calculated wave value exceeds the representable range of floating-point numbers.
  • Solution: Adjust the amplitude and max_value parameters to ensure that the output values remain within a reasonable range.

AbsCosWave 📅🅕🅝 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.