ComfyUI  >  Nodes  >  FizzNodes >  TriangleWave 📅🅕🅝

ComfyUI Node: TriangleWave 📅🅕🅝

Class Name

TriangleWave

Category
FizzNodes 📅🅕🅝/WaveNodes
Author
FizzleDorf (Account age: 1989 days)
Extension
FizzNodes
Latest Updated
6/27/2024
Github Stars
0.3K

How to Install FizzNodes

Install this extension via the ComfyUI Manager by searching for  FizzNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter FizzNodes in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

TriangleWave 📅🅕🅝 Description

Generate symmetrical triangle waveforms for artistic and graphical applications with customizable parameters for dynamic effects.

TriangleWave 📅🅕🅝:

The TriangleWave node is designed to generate a triangle wave pattern, which is a type of non-sinusoidal waveform that is particularly useful in various artistic and graphical applications. This node allows you to create smooth, linear waveforms that rise and fall in a symmetrical manner, making it ideal for creating repetitive, oscillating patterns. The TriangleWave node is highly customizable, enabling you to adjust parameters such as phase, amplitude, and translations to fit your specific needs. By manipulating these parameters, you can control the frequency, height, and position of the wave, providing you with a versatile tool for generating dynamic and visually appealing effects.

TriangleWave 📅🅕🅝 Input Parameters:

phase

The phase parameter controls the period of the triangle wave, which is the length of one complete cycle of the wave. A higher phase value results in a longer period, meaning the wave oscillates more slowly. Conversely, a lower phase value results in a shorter period, causing the wave to oscillate more quickly. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 1.0.

amplitude

The amplitude parameter determines the height of the triangle wave, which is the distance from the centerline to the peak of the wave. A higher amplitude value results in a taller wave, while a lower amplitude value results in a shorter wave. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 0.5.

x_translation

The x_translation parameter shifts the triangle wave horizontally along the x-axis. This allows you to move the wave left or right without altering its shape. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 0.0.

y_translation

The y_translation parameter shifts the triangle wave vertically along the y-axis. This allows you to move the wave up or down without changing its shape. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 0.5.

current_frame

The current_frame parameter specifies the current frame or time step at which the wave is being evaluated. This parameter is essential for animating the wave over time, as it determines the position of the wave at each frame. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 1.0.

TriangleWave 📅🅕🅝 Output Parameters:

FLOAT

The FLOAT output represents the calculated value of the triangle wave at the specified current_frame. This value is a floating-point number that indicates the height of the wave at that particular point in time.

INT

The INT output is the integer representation of the FLOAT output. This value is useful for applications that require discrete or rounded values rather than continuous floating-point numbers.

TriangleWave 📅🅕🅝 Usage Tips:

  • To create a slow oscillating wave, increase the phase parameter to a higher value.
  • Adjust the amplitude parameter to control the height of the wave, making it more or less pronounced.
  • Use the x_translation and y_translation parameters to position the wave precisely within your project.
  • Animate the current_frame parameter over time to create dynamic, moving wave patterns.

TriangleWave 📅🅕🅝 Common Errors and Solutions:

"Invalid phase value"

  • Explanation: The phase parameter must be a positive number greater than 0.0.
  • Solution: Ensure that the phase value is set to a number within the valid range (0.0 to 9999.0).

"Invalid amplitude value"

  • Explanation: The amplitude parameter must be a non-negative number.
  • Solution: Check that the amplitude value is within the valid range (0.0 to 9999.0).

"Invalid x_translation or y_translation value"

  • Explanation: The x_translation and y_translation parameters must be non-negative numbers.
  • Solution: Verify that both x_translation and y_translation values are within the valid range (0.0 to 9999.0).

"Invalid current_frame value"

  • Explanation: The current_frame parameter must be a non-negative integer.
  • Solution: Ensure that the current_frame value is set to an integer within the valid range (0.0 to 9999.0).

TriangleWave 📅🅕🅝 Related Nodes

Go back to the extension to check out more related nodes.
FizzNodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.