Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate smooth triangle wave patterns for animations and procedural tasks with predictable cyclic output for rhythmic effects.
The Triangle Curve [Dream] node is designed to generate a triangle wave pattern over time, which can be particularly useful in animation and procedural generation tasks. This node allows you to create smooth, periodic transitions between a minimum and maximum value, forming a triangular waveform. The primary benefit of using this node is its ability to produce a predictable and cyclic output that can be easily controlled and adjusted through its input parameters. This makes it ideal for creating rhythmic or oscillating effects in your animations or other creative projects.
This parameter sets the maximum value of the triangle wave. It determines the peak value that the wave will reach during its cycle. The default value is 1.0, and it can be adjusted to any floating-point number to fit your specific needs.
This parameter sets the minimum value of the triangle wave. It determines the lowest value that the wave will reach during its cycle. The default value is 0.0, and it can be adjusted to any floating-point number to fit your specific needs.
This parameter defines the duration of one complete cycle of the triangle wave in seconds. It controls how long it takes for the wave to go from the minimum value to the maximum value and back to the minimum value. The default value is 10.0 seconds, with a minimum allowable value of 0.01 seconds.
This parameter adjusts the phase of the triangle wave, effectively shifting the wave left or right along the time axis. The phase value ranges from -1 to 1, with a default value of 0.0. Adjusting the phase can help synchronize the wave with other elements in your project.
This output provides the current value of the triangle wave as a floating-point number. It represents the precise value of the wave at the current time, based on the input parameters.
This output provides the current value of the triangle wave as an integer. It is a rounded version of the FLOAT output, which can be useful for applications that require discrete values.
periodicity_seconds
to match the desired duration of one complete cycle.phase
parameter to synchronize the triangle wave with other time-based elements in your project, ensuring a cohesive animation.max_value
and min_value
parameters to control the amplitude of the wave, tailoring it to the specific needs of your animation or procedural generation task.periodicity_seconds
parameter is set to a value less than the minimum allowed (0.01 seconds).periodicity_seconds
parameter is set to a value of at least 0.01 seconds.phase
parameter is set to a value outside the allowed range of -1 to 1. - Solution: Adjust the phase
parameter to a value within the range of -1 to 1.frame_counter
input is missing or not properly connected.frame_counter
input is correctly connected and providing the current time in seconds.© Copyright 2024 RunComfy. All Rights Reserved.