Skip to main content

Spectrum Detection

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

NameData TypeDescription
AudioAudio StreamThe audio stream you want to detect the magnitude of the spectrum range for.
EnabledBooleanEnable this node or not.

Output

NameData TypeDescription
AudioAudio StreamThe connected audio stream. Connect it to a Speaker to play or connect it to a Detection Output to play with no sound.
AverageNumberThe average magnitude of the audio stream.
Band 1NumberThe magnitude of the spectrum range from 0 Hz to 2756 Hz.
Band 2NumberThe magnitude of the spectrum range from 2756 Hz to 5512 Hz.
Band 3NumberThe magnitude of the spectrum range from 5512 Hz to 8269 Hz.
Band 4NumberThe magnitude of the spectrum range from 8269 Hz to11025 Hz.
Band 5NumberThe magnitude of the spectrum range from 11025 Hz to 13781 Hz.
Band 6NumberThe magnitude of the spectrum range from 13781 Hz to 16537 Hz.
Band 7NumberThe magnitude of the spectrum range from 16537 Hz to 19293 Hz.
Band 8NumberThe magnitude of the spectrum range from 19293 Hz to 22050 Hz.

Example

↓ spectrum_detection.zip

This example detects the bandwidth of the audio stream, then maps the 8 range outputs to the 8 graphic bars’ height in realtime.

spectrum detection node

AI Music powered by TikTok – SAMI.