With this pack of nodes, you can analyze audio, extract drums, bass, vocal tracks, and use the scheduled masks and weights to create audio-reactive animations in ComfyUI
In Progress
Analyzes audio input to generate audio-reactive weights and visualizations. It can extract specific elements from the audio, such as drums, vocals, bass, or analyze the full audio. Using AI-based audio separator open-unmix, it separates these components from the input audio
Node Parameters
- batch_size: The number of audio frames to process
- fps: Frames per second for processing audio weights, the output of your animation need to have the same fps to be correctly synchronized
- audio: Input audio file
- analysis_mode: Selects the audio component to analyze (Drums Only, Full Audio, Vocals Only, Bass Only, Other Audio). This analysis is performed using AI-based audio separation models (open-unmix)
- threshold: Filters the audio weights based on sound intensity (only values above the threshold pass through)
- add: Adds a constant value to all the weights
- smooth: Smoothing factor to reduce sharp transitions between weights
- multiply: Multiplication factor to amplify the weights
- add_range: Expands the range of the weights to control output dynamic range
- invert_weights: Inverts the audio weights
Outputs:
- audio_weights: A float list of audio-reactive weights based on the processed audio
- processed_audio: The separated or processed audio (e.g., drums, vocals) used in the analysis
- original_audio: The original audio input without modifications
- audio_visualization: An image displaying a graph of the audio weights over time, representing the variation in intensity across the analyzed frames
Converts a list of floats to IPAdapter weights strategy, useful to use "IPAdapter Weights From Strategy" & "Prompt Schedule From Weights Strategy" from any float list, this way you can give the audio_weights from my audio nodes to the IPAdapter pipeline
Node Parameters
- floats: The list of float values to be converted into a weights strategy
- batch_size: The number of frames you want to proceed
Outputs:
- WEIGHTS_STRATEGY: A dictionary containing the weights strategy used by IPAdapter, including the weights and related parameters
This node generates a visualization of one or more list of floats. It plots the provided float lists on a graph, allowing you to visually analyze the data, Useful if you want to compare the audio weights of differents Audio Reactive instance, for example one with your drums weights, one with your vocal weights etc...
Node Parameters
- floats: The primary list of float values to visualize
- title: Title of the graph
- x_label: Label for the x-axis
- y_label: Label for the y-axis
- floats_optional2: (Optional) A second list of float values to include in the visualization
- floats_optional3: (Optional) A third list of float values to include in the visualization
Outputs:
- visual_graph: An image displaying the graph of the provided float sequences
This node inverts all the individuals values of a list of floats
Node Parameters
- floats: The list of float values to invert
Outputs:
- floats_invert: The inverted list of float values, where all the individual values have been inversed
- Install ComfyUI & ComfyUI-Manager
- Launch ComfyUI
- Click on "🧩 Manager" -> "Custom Nodes Manager"
- Search for
ComfyUI_Yvann-Nodes
in the manager and install it
- Node FloatList to Graph Visualization
- Node Combine graph visualization
Want to help make this project better? Feel free to:
- Open an issue
- Submit a pull request
- Reach out to me on LinkedIn