Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate inverted sine wave patterns for AI art with unique visual effects.
The InvSinWave node is designed to generate an inverted sine wave pattern, which can be particularly useful in various AI art applications where wave-like transformations or animations are desired. This node calculates the output by taking the maximum value and subtracting the product of the amplitude and the absolute value of the cosine function applied to the current frame divided by the phase. This results in a wave that oscillates in an inverted manner, providing a unique and visually appealing effect. The node is part of the FizzNodes 📅🅕🅝/WaveNodes category, making it a specialized tool for creating intricate wave patterns in your projects.
The phase
parameter controls the period of the wave, determining how many frames it takes for the wave to complete one full cycle. A higher phase value results in a longer wave 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.
The amplitude
parameter defines the height of the wave, affecting how far the wave oscillates from its central value. A higher amplitude results in more pronounced peaks and troughs, while a lower amplitude produces a flatter 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.
The x_translation
parameter shifts the wave horizontally along the x-axis. This can be used to offset the starting point of the wave, allowing for precise alignment with other elements in your project. The default value is 0.0, with a minimum of 0.0 and a maximum of 9999.0, adjustable in steps of 1.0.
The max_value
parameter sets the maximum value that the wave can reach. This acts as a ceiling for the wave's oscillation, ensuring that the output does not exceed this specified 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.
The current_frame
parameter indicates the current frame number in the animation or sequence. This is used to calculate the wave's position 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.
The FLOAT
output represents the calculated value of the inverted sine wave at the given frame. This value is a floating-point number that can be used directly in your project to create smooth, continuous wave patterns.
The INT
output is the integer representation of the calculated wave value. This can be useful for applications that require discrete values or for further processing where integer values are needed.
phase
and amplitude
values.x_translation
parameter to align the wave with other elements in your project, ensuring a cohesive and integrated design.phase
parameter is set to 0, leading to a division by zero in the wave calculation.phase
parameter is set to a value greater than 0.© Copyright 2024 RunComfy. All Rights Reserved.