ComfyUI > Nodes > ComfyUI_Yvann-Nodes > Audio Peaks Detection

ComfyUI Node: Audio Peaks Detection

Class Name

Audio Peaks Detection

Category
👁️ Yvann Nodes/🔊 Audio
Author
yvann-ba (Account age: 1129days)
Extension
ComfyUI_Yvann-Nodes
Latest Updated
2025-01-27
Github Stars
0.35K

How to Install ComfyUI_Yvann-Nodes

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

Audio Peaks Detection Description

Identifies significant audio peaks for triggering visual changes in multimedia applications, useful for synchronizing audio with visuals.

Audio Peaks Detection:

The Audio Peaks Detection node is designed to identify significant peaks within audio data, which can be crucial for triggering visual changes or actions in multimedia applications. By analyzing audio weights, this node detects peaks based on a specified threshold and minimum distance between peaks. This functionality is particularly useful for AI artists who want to synchronize audio events with visual elements, creating dynamic and responsive art pieces. The node processes audio data to highlight moments of interest, allowing for a more engaging and interactive experience. Its ability to filter out minor fluctuations and focus on prominent audio events makes it an essential tool for enhancing audio-visual projects.

Audio Peaks Detection Input Parameters:

audio_weights

This parameter represents the audio data that the node will analyze to detect peaks. It is crucial for the node's operation as it forms the basis of the peak detection process. The input should be a list or an array of floating-point numbers, which are typically derived from an audio analysis process. The accuracy and quality of the audio weights directly impact the effectiveness of peak detection.

peaks_threshold

The peaks_threshold parameter sets the minimum height that a peak must have to be considered significant. It is a floating-point value ranging from 0.0 to 1.0, with a default value of 0.4. Adjusting this threshold allows you to control the sensitivity of the peak detection process. A lower threshold will result in more peaks being detected, including smaller fluctuations, while a higher threshold will focus on more prominent peaks.

min_peaks_distance

This parameter defines the minimum number of frames that must exist between consecutive peaks. It is an integer value with a default of 5, and it can range from 1 to 100. By setting this distance, you can prevent the detection of closely spaced peaks that may not be significant, thereby reducing noise and focusing on more meaningful audio events.

Audio Peaks Detection Output Parameters:

peaks_weights

This output is a binary list indicating the presence of peaks in the audio data, where a value of 1 signifies a peak and 0 indicates no peak. It provides a straightforward way to visualize and understand where significant audio events occur within the data.

peaks_alternate_weights

The peaks_alternate_weights output is an alternating binary list based on the detected peaks. It switches between 0 and 1 for each detected peak, offering an alternative representation that can be useful for certain types of visualizations or analyses.

peaks_index

This output is a string that lists the indices of the detected peaks within the audio data. It provides a clear reference for the exact locations of significant audio events, which can be used for further processing or synchronization with visual elements.

peaks_count

The peaks_count output gives the total number of detected peaks. This information is useful for understanding the overall activity within the audio data and can help in adjusting parameters for optimal peak detection.

graph_peaks

This output is a visualization image that shows the detected peaks overlaid on the audio weights. It provides a graphical representation of the peak detection process, making it easier to interpret the results and verify the accuracy of the detected peaks.

Audio Peaks Detection Usage Tips:

  • Adjust the peaks_threshold to fine-tune the sensitivity of peak detection. Lower values will detect more peaks, while higher values will focus on the most significant ones.
  • Use the min_peaks_distance to filter out closely spaced peaks that may not be meaningful, helping to reduce noise in the detection process.
  • Visualize the graph_peaks output to quickly assess the accuracy of the peak detection and make necessary adjustments to the input parameters.

Audio Peaks Detection Common Errors and Solutions:

Invalid audio_weights input

  • Explanation: This error occurs when the audio_weights input is not a list or an array.
  • Solution: Ensure that the audio_weights input is correctly formatted as a list or a numpy array of floating-point numbers.

Error in creating visualization

  • Explanation: This error might happen if there is an issue with generating the visualization image.
  • Solution: Check that all dependencies for visualization, such as matplotlib and PIL, are correctly installed and functioning. Also, ensure that the input data is valid and within expected ranges.

Audio Peaks Detection Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_Yvann-Nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.