Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate triangular waveform for modulating animation parameters with precise control over timing and amplitude for dynamic animations.
The Triangle Event Curve [Dream] node is designed to generate a triangular waveform that can be used to modulate various parameters over time in your animations. This node is particularly useful for creating smooth, cyclical transitions between two values, making it ideal for effects that require a gradual increase and decrease, such as pulsing lights or oscillating movements. By defining the peak and trough values, as well as the duration and center point of the waveform, you can precisely control the timing and amplitude of the curve, allowing for highly customizable and dynamic animations.
This parameter sets the maximum value of the triangle waveform. It determines the peak of the curve, which is the highest point the waveform will reach. 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 waveform. It determines the trough of the curve, which is the lowest point the waveform will reach. 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 total duration of the triangle waveform in seconds. It controls how long it takes for the waveform to go from the minimum value to the maximum value and back to the minimum value. The default value is 1.0 seconds, with a minimum allowable value of 0.1 seconds.
This parameter specifies the center point of the triangle waveform in seconds. It determines the time at which the waveform reaches its peak value. The default value is 10.0 seconds, and it can be adjusted to any floating-point number to fit your specific timing requirements.
This output represents the current value of the triangle waveform at the given time. It is a floating-point number that varies between the specified min_value
and max_value
based on the current time and the defined waveform parameters.
This output is the integer representation of the current value of the triangle waveform. It is derived by rounding the FLOAT
output to the nearest integer, providing a discrete value that can be used in scenarios where integer values are required.
width_seconds
to a value that matches the desired pulse duration and adjust the center_seconds
to control the timing of the peak.max_value
and min_value
parameters to define the amplitude of the waveform, ensuring that the values fit within the range required for your specific animation.width_seconds
parameter is set to a value less than the minimum allowed (0.1 seconds).width_seconds
parameter is set to a value of 0.1 seconds or greater.center_seconds
parameter is set to a negative value.center_seconds
parameter is set to a non-negative value.max_value
or min_value
parameters are set to non-numeric values.max_value
and min_value
parameters are set to valid floating-point numbers.© Copyright 2024 RunComfy. All Rights Reserved.