Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate sawtooth waveforms for animation and procedural generation with customizable parameters for dynamic visual effects.
The Saw Curve [Dream] node is designed to generate a sawtooth wave pattern, which is a type of non-sinusoidal waveform characterized by a linear rise and a sudden drop. This node is particularly useful in animation and procedural generation, where you need a repeating linear ramp effect. The sawtooth wave can be used to create smooth, periodic transitions in animations, giving a consistent and predictable pattern over time. By adjusting parameters such as the maximum and minimum values, periodicity, and phase, you can customize the waveform to fit your specific needs, making it a versatile tool for creating dynamic visual effects.
This parameter sets the maximum value of the sawtooth wave. It determines the peak of the waveform, which is the highest point the wave will reach before resetting. The default value is 1.0, and it can be adjusted to any floating-point number to scale the amplitude of the wave.
This parameter sets the minimum value of the sawtooth wave. It determines the lowest point of the waveform before it starts rising again. The default value is 0.0, and it can be adjusted to any floating-point number to set the baseline of the wave.
This parameter defines the duration of one complete cycle of the sawtooth wave in seconds. It controls how long it takes for the wave to rise from the minimum value to the maximum value and then drop back to the minimum value. The default value is 10.0 seconds, with a minimum allowable value of 0.01 seconds, allowing for both slow and fast oscillations.
This parameter adjusts the phase of the sawtooth wave, effectively shifting the waveform left or right along the time axis. The phase value ranges from -1 to 1, with a default of 0.0. A positive phase value shifts the wave to the right, while a negative value shifts it to the left, allowing for synchronization with other waveforms or events.
This output provides the current value of the sawtooth wave as a floating-point number. It represents the precise value of the waveform at the current time, which can be used for smooth transitions and continuous control in animations.
This output provides the current value of the sawtooth wave as an integer. It is a rounded version of the FLOAT output, useful for scenarios where discrete values are needed, such as frame counts or step-based animations.
periodicity_seconds
to match the desired duration of one complete cycle.phase
parameter to synchronize the sawtooth wave with other animation curves or events, ensuring seamless transitions.max_value
and min_value
to control the amplitude of the wave, tailoring the effect to your specific visual requirements.periodicity_seconds
parameter is set to a value less than the minimum allowed (0.01 seconds).periodicity_seconds
value is set to 0.01 or higher.phase
parameter is set to a value outside the allowed range of -1 to 1. - Solution: Adjust the phase
parameter to be within the range of -1 to 1.© Copyright 2024 RunComfy. All Rights Reserved.