Spectrum Detection
Use Spectrum Detection to divide the audio spectrum range (0 Hz to 22050 Hz) into 8 output bands, and detect the magnitude of each band in a range between 0 and 255. You can use the output values to animate or transform 2D objects. Spectrum Detection is in the Audio category.
Input
Name | Data Type | Description |
---|---|---|
Audio | Audio Stream | The audio stream you want to detect the magnitude of the spectrum range for. |
Enabled | Boolean | Enable this node or not. |
Output
Name | Data Type | Description |
---|---|---|
Audio | Audio Stream | The connected audio stream. Connect it to a Speaker to play or connect it to a Detection Output to play with no sound. |
Average | Number | The average magnitude of the audio stream. |
Band 1 | Number | The magnitude of the spectrum range from 0 Hz to 2756 Hz. |
Band 2 | Number | The magnitude of the spectrum range from 2756 Hz to 5512 Hz. |
Band 3 | Number | The magnitude of the spectrum range from 5512 Hz to 8269 Hz. |
Band 4 | Number | The magnitude of the spectrum range from 8269 Hz to11025 Hz. |
Band 5 | Number | The magnitude of the spectrum range from 11025 Hz to 13781 Hz. |
Band 6 | Number | The magnitude of the spectrum range from 13781 Hz to 16537 Hz. |
Band 7 | Number | The magnitude of the spectrum range from 16537 Hz to 19293 Hz. |
Band 8 | Number | The magnitude of the spectrum range from 19293 Hz to 22050 Hz. |
Example
This example detects the bandwidth of the audio stream, then maps the 8 range outputs to the 8 graphic bars’ height in realtime.
AI Music powered by TikTok – SAMI.