Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate smooth sine wave patterns for artistic and animation effects with adjustable frequency, height, and position.
The SinWave node is designed to generate a sine wave pattern based on the provided parameters. This node is particularly useful for creating smooth, oscillating values that can be applied in various artistic and animation contexts. By adjusting the phase, amplitude, and translations, you can control the wave's frequency, height, and position, making it a versatile tool for generating dynamic and rhythmic effects. The SinWave node calculates the sine of the current frame, allowing for continuous and seamless wave generation over time.
The phase
parameter controls the period of the sine wave, which is the length of one complete cycle. A higher phase value results in a longer cycle, while a lower phase value shortens the cycle. This parameter accepts floating-point values with a minimum of 0.0, a maximum of 9999.0, and a default value of 1.0.
The amplitude
parameter determines the height of the sine wave. A higher amplitude value increases the wave's peak and trough, making the oscillations more pronounced. This parameter accepts floating-point values with a minimum of 0.0, a maximum of 9999.0, and a default value of 0.5.
The x_translation
parameter shifts the sine wave horizontally. This translation allows you to move the wave along the x-axis, effectively changing the starting point of the wave. This parameter accepts floating-point values with a minimum of 0.0, a maximum of 9999.0, and a default value of 0.0.
The y_translation
parameter shifts the sine wave vertically. This translation moves the entire wave up or down along the y-axis, adjusting the baseline of the wave. This parameter accepts floating-point values with a minimum of 0.0, a maximum of 9999.0, and a default value of 0.5.
The current_frame
parameter represents the current point in time or frame number for which the sine wave value is being calculated. This parameter is essential for generating the wave over time and accepts integer values with a minimum of 0.0, a maximum of 9999.0, and a default value of 1.0.
The FLOAT
output is the calculated value of the sine wave at the given current_frame
. This value is a floating-point number that represents the y-coordinate of the sine wave at the specified frame, taking into account the phase, amplitude, and translations.
The INT
output is the integer representation of the calculated sine wave value. This value is derived by converting the FLOAT
output to an integer, which can be useful for applications that require discrete values.
current_frame
parameter is incremented consistently over time.amplitude
to control the intensity of the wave's oscillations, making it more or less pronounced as needed.x_translation
and y_translation
parameters to position the wave precisely within your desired coordinate space.phase
values to achieve various wave frequencies, from rapid oscillations to slow, undulating movements.phase
value is not zero.amplitude
and phase
values to ensure they are within reasonable limits to prevent excessively large results.© Copyright 2024 RunComfy. All Rights Reserved.