Sound Reactive(SoundReactive)
This node captures audio input via the browser and allows users to set a specific frequency range (in Hertz) to focus the analysis.
Sound Reactive
The Sound Reactive node captures audio input via the browser and allows users to set a specific frequency range (Hz) for focused analysis.
The Sound Reactive node is an audio-responsive tool that converts the volume level of real-time audio input into a numerical signal usable by other nodes. Its core function is to capture and process audio data from the browser's microphone, generating dynamically changing FLOAT and INT outputs, thereby integrating changes in sound intensity into the image generation workflow.
Node Functionality
This node captures audio input via the browser and allows users to set a specific frequency range (Hz) for focused analysis. It applies smoothing to the raw audio signal to reduce abrupt changes and optionally normalizes the output values. Ultimately, the node outputs two values: a precise FLOAT and a rounded INT, both representing the processed audio intensity.
Node Parameter Description - Sound Reactive
Control Parameters (Parameters)
| Parameter Name | Data Type | Required | Default Value | Range/Options | Description |
|---|---|---|---|---|---|
sound_level | FLOAT | Yes | 1.0 | 0.0 - 99999 (Step: 0.01) | sound_level (Input Parameter): Manually sets the sound level value. When an audio input is available, this can be overridden by the browser's microphone. |
start_range_hz | INT | Yes | 150 | 0 - 9999 (Step: 1) | start_range_hz (Input Parameter): Sets the starting value (in Hz) of the audio frequency range to analyze. Configurable range from 0 to 9999, with a step of 1. |
end_range_hz | INT | Yes | 2000 | 0 - 9999 (Step: 1) | end_range_hz (Input Parameter): Sets the ending value (in Hz) of the audio frequency range to analyze. Configurable range from 0 to 9999, with a step of 1. |
multiplier | FLOAT | Yes | 1.0 | 0.01 - 99999 (Step: 0.01) | multiplier (Input Parameter): A scaling factor applied to the processed volume value for overall adjustment. Range from 0.01 to 99999, adjustable in steps of 0.01. |
smoothing_factor | FLOAT | Yes | 0.5 | 0.0 - 1.0 (Step: 0.01) | smoothing_factor (Input Parameter): Controls the smoothness of volume value changes to avoid drastic output fluctuations. Range between 0.0 and 1.0, adjustable in steps of 0.01. |
normalize | BOOLEAN | Yes | False | - | normalize (Input Parameter): A BOOLEAN switch. When enabled, normalizes the volume value by dividing it by 255. |
Output
| Parameter Name | Data Type | Description |
|---|---|---|
| sound_level | FLOAT | sound_level (Output Parameter): Outputs the final processed volume value in FLOAT format. |
| sound_level_int | INT | sound_level_int (Output Parameter): Outputs the final volume value converted to an integer. |
Use Cases
This node is ideal for creating dynamic visual content that interacts in real-time with music or ambient sound. For example, in a real-time diffusion workflow, the node's output can be connected to parameters such as prompt strength or noise offset, enabling the generated images to change and respond visually to the rhythm or volume of the music.
Notes
Using this node requires granting browser microphone access, and its effectiveness depends on the quality and stability of the audio input. It is primarily designed for automated or interactive scenarios requiring real-time audio feedback and may not be necessary for static image batch generation workflows.
Sound Reactive Node Source Code Link
The Sound Reactive node is from the ComfyUI-KJNodes node package.
Comments
Sign in with GitHub to join the discussion.