Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate smooth oscillating patterns using absolute value of cosine function for AI art projects with flexible control over phase, amplitude, and translation.
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.
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.
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.
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.
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.
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.
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.
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.
phase
and amplitude
values to create a variety of waveforms, from subtle oscillations to dramatic peaks.x_translation
parameter to synchronize the wave with other elements in your project, ensuring a cohesive visual effect.max_value
to control the upper limit of the wave, preventing it from exceeding a certain threshold and maintaining consistency in your design.phase
value is not set to zero.amplitude
and max_value
parameters to ensure that the output values remain within a reasonable range.© Copyright 2024 RunComfy. All Rights Reserved.