Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate customizable square waveforms for rhythmic patterns in audio synthesis, signal processing, and visual effects.
The SquareWave node is designed to generate a square wave signal, which is a type of non-sinusoidal waveform that alternates between two levels with a 50% duty cycle. This node is particularly useful for creating sharp, rhythmic patterns and can be applied in various artistic and technical contexts, such as audio synthesis, signal processing, and visual effects. The primary goal of the SquareWave node is to provide a simple yet powerful tool for generating square waveforms with customizable parameters, allowing you to control the phase, amplitude, and translations of the wave to fit your specific needs.
The phase
parameter controls the period of the square wave, which is the duration of one complete cycle of the waveform. Adjusting the phase changes the frequency of the wave. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 1.0. This parameter is crucial for determining how fast the waveform oscillates.
The amplitude
parameter sets the height of the square wave, which is the difference between its maximum and minimum values. A higher amplitude results in a taller wave, while a lower amplitude produces a shorter wave. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 0.5. This parameter affects the intensity of the waveform.
The x_translation
parameter shifts the waveform horizontally along the x-axis. This translation can be used to align the wave with other elements or to create phase shifts. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 0.0. This parameter helps in synchronizing the wave with other signals or visual elements.
The y_translation
parameter shifts the waveform vertically along the y-axis. This translation can be used to adjust the baseline of the wave. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 0.5. This parameter is useful for setting the vertical position of the waveform.
The current_frame
parameter specifies the current frame or time step at which the waveform is evaluated. This parameter is essential for animating the waveform over time. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 1.0. This parameter allows the wave to be dynamic and change over time.
The FLOAT
output represents the calculated value of the square wave at the given current_frame
. This value is a floating-point number that indicates the precise position of the waveform at that specific frame. It is useful for applications that require high precision in waveform generation.
The INT
output is the integer representation of the FLOAT
output. This value is useful for applications that require discrete levels or when working with systems that do not support floating-point numbers. It provides a simplified version of the waveform's position.
phase
value.amplitude
to control the intensity of the wave, making it more or less pronounced.x_translation
and y_translation
to align the wave with other elements in your project.current_frame
parameter to create dynamic and evolving waveforms over time.phase
value is set to a number outside the allowed range.phase
value is between 0.0 and 9999.0.amplitude
value is set to a number outside the allowed range.amplitude
value is between 0.0 and 9999.0.x_translation
value is set to a number outside the allowed range.x_translation
value is between 0.0 and 9999.0.y_translation
value is set to a number outside the allowed range.y_translation
value is between 0.0 and 9999.0.current_frame
value is set to a number outside the allowed range.current_frame
value is between 0.0 and 9999.0.© Copyright 2024 RunComfy. All Rights Reserved.