Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate sawtooth wave patterns for AI art with sharp transitions and user-friendly controls for frequency, amplitude, and phase adjustments.
The SawtoothWave node generates 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 for creating repetitive, linear patterns in your AI art projects. The sawtooth wave is known for its sharp transitions, making it ideal for applications that require a clear, periodic signal. By adjusting various parameters, you can control the frequency, amplitude, and phase of the wave, allowing for a wide range of creative possibilities. This node is designed to be user-friendly, enabling you to easily incorporate complex waveforms into your designs without needing a deep technical background.
The phase
parameter controls the period of the sawtooth wave, which is the duration of one complete cycle. A smaller phase value results in a higher frequency wave, while a larger phase value produces a lower frequency wave. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 1.0. Adjusting this parameter allows you to fine-tune the timing of the wave's transitions.
The amplitude
parameter determines the height of the wave's peaks and troughs. A higher amplitude results in a more pronounced wave, while a lower amplitude produces a subtler effect. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 0.5. This parameter is crucial for controlling the intensity of the wave pattern in your design.
The x_translation
parameter shifts the wave horizontally along the x-axis. This allows you to offset the starting point of the wave, which can be useful for aligning the wave with other elements in your design. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 0.0. Use this parameter to synchronize the wave with other patterns or elements.
The y_translation
parameter shifts the wave vertically along the y-axis. This vertical offset can help you position the wave within your design space. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 0.5. Adjusting this parameter allows you to control the baseline of the wave.
The current_frame
parameter specifies the current frame or time step for the wave calculation. This is particularly useful for animations or time-based designs, as it allows the wave to evolve over time. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 1.0. Use this parameter to animate the wave or create dynamic effects.
The FLOAT
output represents the calculated value of the sawtooth wave at the specified current_frame
. This value is a floating-point number that can be used directly in your design or further processed by other nodes. It provides a precise representation of the wave's amplitude at a given point in time.
The INT
output is the integer representation of the FLOAT
output. This can be useful for applications that require discrete values or for simplifying the wave data. It provides a rounded version of the wave's amplitude, making it easier to work with in certain contexts.
phase
parameter to find the right frequency for your design. Smaller values create faster oscillations, while larger values produce slower, more gradual waves.amplitude
parameter to control the intensity of the wave. Higher amplitudes create more dramatic effects, while lower amplitudes result in subtler patterns.x_translation
and y_translation
parameters to position the wave precisely within your design. This can help you align the wave with other elements or create complex, layered effects.current_frame
parameter to animate the wave over time. This is particularly useful for creating dynamic, time-based designs or animations.phase
parameter must be a positive number within the specified range.phase
value is between 0.0 and 9999.0 and is not zero.amplitude
parameter must be a positive number within the specified range.amplitude
value is between 0.0 and 9999.0.x_translation
parameter must be a positive number within the specified range.x_translation
value is between 0.0 and 9999.0.y_translation
parameter must be a positive number within the specified range.y_translation
value is between 0.0 and 9999.0.current_frame
parameter must be a positive integer within the specified range.current_frame
value is between 0.0 and 9999.0 and is an integer.© Copyright 2024 RunComfy. All Rights Reserved.