KJNodes/audiogenerated

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

sound_level
sound_level_int
sound_level
1.00
start_range_hz
150
end_range_hz
2000
multiplier
1.00
smoothing_factor
0.50
normalize
KJNodes

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 NameData TypeRequiredDefault ValueRange/OptionsDescription
sound_levelFLOATYes1.00.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_hzINTYes1500 - 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_hzINTYes20000 - 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.
multiplierFLOATYes1.00.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_factorFLOATYes0.50.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.
normalizeBOOLEANYesFalse-normalize (Input Parameter): A BOOLEAN switch. When enabled, normalizes the volume value by dividing it by 255.

Output

Parameter NameData TypeDescription
sound_levelFLOATsound_level (Output Parameter): Outputs the final processed volume value in FLOAT format.
sound_level_intINTsound_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.

The Sound Reactive node is from the ComfyUI-KJNodes node package.

Comments

Sign in with GitHub to join the discussion.

Loading comments…