ComfyUI  >  Nodes  >  FizzNodes >  SquareWave 📅🅕🅝

ComfyUI Node: SquareWave 📅🅕🅝

Class Name

SquareWave

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

SquareWave 📅🅕🅝 Description

Generate customizable square waveforms for rhythmic patterns in audio synthesis, signal processing, and visual effects.

SquareWave 📅🅕🅝:

The SquareWave node is designed to generate a square wave signal, which is a type of non-sinusoidal waveform that alternates between two levels with a 50% duty cycle. This node is particularly useful for creating sharp, rhythmic patterns and can be applied in various artistic and technical contexts, such as audio synthesis, signal processing, and visual effects. The primary goal of the SquareWave node is to provide a simple yet powerful tool for generating square waveforms with customizable parameters, allowing you to control the phase, amplitude, and translations of the wave to fit your specific needs.

SquareWave 📅🅕🅝 Input Parameters:

phase

The phase parameter controls the period of the square wave, which is the duration of one complete cycle of the waveform. Adjusting the phase changes the frequency of the wave. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 1.0. This parameter is crucial for determining how fast the waveform oscillates.

amplitude

The amplitude parameter sets the height of the square wave, which is the difference between its maximum and minimum values. A higher amplitude results in a taller wave, while a lower amplitude produces a shorter wave. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 0.5. This parameter affects the intensity of the waveform.

x_translation

The x_translation parameter shifts the waveform horizontally along the x-axis. This translation can be used to align the wave with other elements or to create phase shifts. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 0.0. This parameter helps in synchronizing the wave with other signals or visual elements.

y_translation

The y_translation parameter shifts the waveform vertically along the y-axis. This translation can be used to adjust the baseline of the wave. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 0.5. This parameter is useful for setting the vertical position of the waveform.

current_frame

The current_frame parameter specifies the current frame or time step at which the waveform is evaluated. This parameter is essential for animating the waveform over time. The minimum value is 0.0, the maximum value is 9999.0, and the default value is 1.0. This parameter allows the wave to be dynamic and change over time.

SquareWave 📅🅕🅝 Output Parameters:

FLOAT

The FLOAT output represents the calculated value of the square wave at the given current_frame. This value is a floating-point number that indicates the precise position of the waveform at that specific frame. It is useful for applications that require high precision in waveform generation.

INT

The INT output is the integer representation of the FLOAT output. This value is useful for applications that require discrete levels or when working with systems that do not support floating-point numbers. It provides a simplified version of the waveform's position.

SquareWave 📅🅕🅝 Usage Tips:

  • To create a fast oscillating square wave, decrease the phase value.
  • Adjust the amplitude to control the intensity of the wave, making it more or less pronounced.
  • Use x_translation and y_translation to align the wave with other elements in your project.
  • Animate the current_frame parameter to create dynamic and evolving waveforms over time.

SquareWave 📅🅕🅝 Common Errors and Solutions:

"Invalid phase value"

  • Explanation: The phase value is set to a number outside the allowed range.
  • Solution: Ensure the phase value is between 0.0 and 9999.0.

"Invalid amplitude value"

  • Explanation: The amplitude value is set to a number outside the allowed range.
  • Solution: Ensure the amplitude value is between 0.0 and 9999.0.

"Invalid x_translation value"

  • Explanation: The x_translation value is set to a number outside the allowed range.
  • Solution: Ensure the x_translation value is between 0.0 and 9999.0.

"Invalid y_translation value"

  • Explanation: The y_translation value is set to a number outside the allowed range.
  • Solution: Ensure the y_translation value is between 0.0 and 9999.0.

"Invalid current_frame value"

  • Explanation: The current_frame value is set to a number outside the allowed range.
  • Solution: Ensure the current_frame value is between 0.0 and 9999.0.

SquareWave 📅🅕🅝 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.