ComfyUI  >  Nodes  >  Deforum Nodes >  (deforum) AmplitudeToAudio

ComfyUI Node: (deforum) AmplitudeToAudio

Class Name


deforum (Account age: 2606 days)
Deforum Nodes
Latest Updated
Github Stars

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 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

(deforum) AmplitudeToAudio Description

Converts amplitude and phase data to audio signal using inverse FFT for AI artists working with audio data.

(deforum) AmplitudeToAudio:

The AmplitudeToAudio node is designed to convert amplitude and phase data back into an audio signal. This node is particularly useful for AI artists who work with audio data and need to reconstruct audio from its frequency domain representation. By leveraging the inverse Fast Fourier Transform (FFT), this node takes amplitude and phase information to generate a time-domain audio signal, which can then be used in various creative projects. This process allows for the manipulation and synthesis of audio in a highly controlled manner, providing a powerful tool for audio-based AI art.

(deforum) AmplitudeToAudio Input Parameters:


The amplitude parameter represents the amplitude data of the audio signal in the frequency domain. This data is crucial for reconstructing the audio signal as it defines the magnitude of each frequency component. The length of the amplitude array must match the length of the phase array to ensure accurate reconstruction.


The phase parameter contains the phase information of the audio signal in the frequency domain. Phase data is essential for accurately reconstructing the time-domain audio signal, as it defines the phase shift of each frequency component. Like the amplitude array, the phase array must have the same length to ensure proper audio reconstruction.


The sample_rate parameter specifies the sample rate of the audio signal, with a default value of 44100 Hz. The sample rate determines the number of samples per second in the audio signal, affecting the quality and fidelity of the reconstructed audio. Higher sample rates provide better audio quality but require more computational resources.

(deforum) AmplitudeToAudio Output Parameters:


The audio_data output parameter is the reconstructed audio signal in the form of an AudioData object. This object contains the time-domain audio samples, which can be used for playback, further processing, or integration into multimedia projects. The audio_data output provides a seamless way to convert frequency domain data back into a usable audio format.

(deforum) AmplitudeToAudio Usage Tips:

  • Ensure that the amplitude and phase arrays have the same length to avoid errors during the reconstruction process.
  • Use a sample rate that matches the original audio signal to maintain audio quality and avoid artifacts.
  • Experiment with different amplitude and phase manipulations to create unique audio effects and transformations.

(deforum) AmplitudeToAudio Common Errors and Solutions:

Amplitude and phase sequences must have the same length.

  • Explanation: This error occurs when the amplitude and phase arrays have different lengths, which prevents accurate audio reconstruction.
  • Solution: Ensure that both the amplitude and phase arrays have the same length before passing them to the node.

Invalid sample rate.

  • Explanation: This error occurs when the sample_rate parameter is set to an invalid value, such as a negative number or zero.
  • Solution: Set the sample_rate parameter to a positive integer value, typically 44100 Hz for standard audio quality.

Audio reconstruction failed due to invalid data.

  • Explanation: This error occurs when the amplitude or phase data contains invalid values, such as NaNs or infinities.
  • Solution: Validate the amplitude and phase data to ensure they contain only valid numerical values before passing them to the node.

(deforum) AmplitudeToAudio Related Nodes

Go back to the extension to check out more related nodes.
Deforum Nodes

© 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.