Nodes/ComfyUI_Yvann-Nodes/Audio Peaks Detection
ComfyUI Node

Audio Peaks Detection

Detects peaks in audio weights based on threshold and minimum distance between peaks. This node identifies significant audio events to trigger visual changes or actions. The peaks_threshold parameter controls the minimum height required for peak detection (0.0 to 1.0), while min_peaks_distance sets the minimum number of frames between consecutive peaks, helping remove unwanted close peaks around bigger peaks. Outputs include peaks_weights (binary list with 1 for peak, 0 otherwise), peaks_alternate_weights (alternating pattern), peaks_index (comma-separated frame numbers), peaks_count (total detected peaks), and graph_peaks (visual overlay showing detected peaks).

By yvann-ba·Created 2 years ago·Updated 6 months ago· 705
Audio Peaks Detection
  • audio_weights
  • peaks_weights
  • peaks_alternate_weights
  • peaks_index
  • peaks_count
  • graph_peaks
peaks_threshold0.40
min_peaks_distance5
Category👁️ Yvann Nodes/🔊 Audio

Inputs (3)

NameTypeDefaultDescription
audio_weightsFLOATSAudio weights from Audio Analysis node
peaks_thresholdFLOAT0.400–1Minimum height for peak detection (0-1)
min_peaks_distanceINT51–100Minimum frames between peaks (removes close unwanted peaks)

Outputs (5)

NameTypeDescription
peaks_weightsFLOATS
peaks_alternate_weightsFLOATS
peaks_indexSTRING
peaks_countINT
graph_peaksIMAGE