ComfyUI  >  Nodes  >  Deforum Nodes >  (deforum) Frequency Range Amplitude

ComfyUI Node: (deforum) Frequency Range Amplitude

Class Name

FrequencyRangeAmplitude

Category
deforum/audio
Author
deforum (Account age: 2606 days)
Extension
Deforum Nodes
Latest Updated
6/25/2024
Github Stars
0.1K

How to Install Deforum Nodes

Install this extension via the ComfyUI Manager by searching for  Deforum Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Deforum Nodes 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 Cloud 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

(deforum) Frequency Range Amplitude Description

Analyze audio amplitude in specified frequency range for visual synchronization in multimedia projects.

(deforum) Frequency Range Amplitude:

The FrequencyRangeAmplitude node is designed to analyze the amplitude of audio signals within a specified frequency range. This node is particularly useful for AI artists who want to synchronize visual elements with specific audio frequencies, such as creating animations that react to bass or treble sounds in a music track. By applying a bandpass filter to isolate the desired frequency range and then performing a Fast Fourier Transform (FFT), the node extracts and normalizes the amplitude data. This allows for precise control over how audio influences visual outputs, making it an essential tool for creating dynamic and responsive multimedia projects.

(deforum) Frequency Range Amplitude Input Parameters:

audio

This parameter accepts an audio input, which is the source audio data that you want to analyze. The audio data should be in a format that the node can process, typically as an AUDIO type.

frequency_range

This optional parameter specifies the range of frequencies to analyze, given as a tuple. The default value is (20, 20000), which covers the full range of human hearing. Adjusting this range allows you to focus on specific parts of the audio spectrum, such as bass or treble frequencies. The minimum value is 20 Hz, and the maximum value is 20000 Hz.

window_size

This optional parameter determines the size of the window used for smoothing the amplitude data. The default value is 1, which means no smoothing is applied. Increasing the window size can help reduce noise and create a smoother amplitude curve, which can be useful for more stable visual effects.

inverted

This optional boolean parameter, with a default value of False, allows you to invert the amplitude data. When set to True, the amplitude values are inverted, which can be useful for creating inverse visual effects where low amplitudes result in high visual intensity and vice versa.

(deforum) Frequency Range Amplitude Output Parameters:

frequency_range_amplitude

This output parameter provides the normalized amplitude data for the specified frequency range. The amplitude data is a crucial element for creating audio-reactive visuals, as it represents the intensity of the audio signal within the chosen frequency range. This data can be used to drive animations, modify visual properties, or trigger events in your multimedia project.

(deforum) Frequency Range Amplitude Usage Tips:

  • To focus on specific audio elements, adjust the frequency_range parameter to isolate the desired frequencies, such as setting it to (20, 200) for bass or (2000, 5000) for mid-range frequencies.
  • Use the window_size parameter to smooth the amplitude data, especially if the raw data is too noisy or erratic for your visual effects.
  • Experiment with the inverted parameter to create unique visual effects that respond inversely to the audio amplitude.

(deforum) Frequency Range Amplitude Common Errors and Solutions:

"Audio data not found"

  • Explanation: This error occurs when the audio input is missing or not properly connected.
  • Solution: Ensure that you have provided a valid audio input to the node.

"Invalid frequency range"

  • Explanation: This error happens when the specified frequency range is outside the acceptable limits (20 Hz to 20000 Hz).
  • Solution: Adjust the frequency_range parameter to be within the valid range of 20 Hz to 20000 Hz.

"Window size must be a positive integer"

  • Explanation: This error occurs if the window_size parameter is set to a non-positive value.
  • Solution: Set the window_size parameter to a positive integer value.

"Amplitude and phase sequences must have the same length"

  • Explanation: This error is raised when the lengths of amplitude and phase sequences do not match, which can happen during further processing.
  • Solution: Ensure that any subsequent processing of amplitude and phase data maintains equal lengths for both sequences.

(deforum) Frequency Range Amplitude Related Nodes

Go back to the extension to check out more related nodes.
Deforum Nodes
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.