Skip to main content

Sound Reactive

KJNodes/audio
SoundReactive

Reacts to the sound level of the input. Uses your browsers sound input options and requires. Meant to be used with realtime diffusion with autoqueue.

Example

JSON Example
{
  "class_type": "SoundReactive",
  "inputs": {
    "sound_level": 1,
    "start_range_hz": 150,
    "end_range_hz": 2000,
    "multiplier": 1,
    "smoothing_factor": 0.5,
    "normalize": false
  }
}

This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.

Inputs

NameTypeStatusConstraintsDefault
sound_levelFLOATrequiredmin: 0, max: 99999, step: 0.011
start_range_hzINTrequiredmin: 0, max: 9999, step: 1150
end_range_hzINTrequiredmin: 0, max: 9999, step: 12000
multiplierFLOATrequiredmin: 0.01, max: 99999, step: 0.011
smoothing_factorFLOATrequiredmin: 0, max: 1, step: 0.010.5
normalizeBOOLEANrequired-false

Outputs

IndexNameTypeIs ListConnection Reference
0sound_levelFLOATNo["{node_id}", 0]
1sound_level_intINTNo["{node_id}", 1]
How to connect to these outputs

To connect another node's input to an output from this node, use the connection reference format:

["node_id", output_index]

Where node_id is the ID of this SoundReactive node in your workflow, and output_index is the index from the table above.

Example

If this node has ID "5" in your workflow:

  • sound_level (FLOAT): ["5", 0]
  • sound_level_int (INT): ["5", 1]
Was this page helpful?