Skip to content

Audio Reactivity Nodes for ComfyUI ๐Ÿ”Š Analyze audio, generate masks/weights Create audio-driven animations. Compatible with IPAdapter, ControlNets, AnimateDiff

License

Notifications You must be signed in to change notification settings

yvann-ba/ComfyUI_Yvann-Nodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

93 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‘๏ธ ComfyUI_Yvann-Nodes Instagram YouTube

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


Workflows

In Progress


Nodes

Node: Audio Reactive ๐Ÿ”Š

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

Audio Reactive Yvann

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

Node: Floats To Weights Strategy ๐Ÿ› ๏ธ

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

Node: Floats Visualizer ๐Ÿ› ๏ธ

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

Node: Invert Floats ๐Ÿ› ๏ธ

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

Installation

  1. Install ComfyUI & ComfyUI-Manager
  2. Launch ComfyUI
  3. Click on "๐Ÿงฉ Manager" -> "Custom Nodes Manager"
  4. Search for ComfyUI_Yvann-Nodes in the manager and install it

TO DO

  • Node FloatList to Graph Visualization
  • Node Combine graph visualization

Contributing

Want to help make this project better? Feel free to:

  • Open an issue
  • Submit a pull request
  • Reach out to me on LinkedIn

About

Audio Reactivity Nodes for ComfyUI ๐Ÿ”Š Analyze audio, generate masks/weights Create audio-driven animations. Compatible with IPAdapter, ControlNets, AnimateDiff

Topics

Resources

License

Stars

Watchers

Forks