Sound Reactive
KJNodes/audio
SoundReactiveReacts 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
| Name | Type | Status | Constraints | Default |
|---|---|---|---|---|
sound_level | FLOAT | required | min: 0, max: 99999, step: 0.01 | 1 |
start_range_hz | INT | required | min: 0, max: 9999, step: 1 | 150 |
end_range_hz | INT | required | min: 0, max: 9999, step: 1 | 2000 |
multiplier | FLOAT | required | min: 0.01, max: 99999, step: 0.01 | 1 |
smoothing_factor | FLOAT | required | min: 0, max: 1, step: 0.01 | 0.5 |
normalize | BOOLEAN | required | - | false |
Outputs
| Index | Name | Type | Is List | Connection Reference |
|---|---|---|---|---|
0 | sound_level | FLOAT | No | ["{node_id}", 0] |
1 | sound_level_int | INT | No | ["{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?