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).
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)
| Name | Type | Default | Description |
|---|---|---|---|
| audio_weights | FLOATS | Audio weights from Audio Analysis node | |
| peaks_threshold | FLOAT | 0.400–1 | Minimum height for peak detection (0-1) |
| min_peaks_distance | INT | 51–100 | Minimum frames between peaks (removes close unwanted peaks) |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| peaks_weights | FLOATS | — |
| peaks_alternate_weights | FLOATS | — |
| peaks_index | STRING | — |
| peaks_count | INT | — |
| graph_peaks | IMAGE | — |