Skip to main content
TikTok Effect House Platform Logo
Download
Masuk
Audio

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
EnabledBooleanEnable this node

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 to16537 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

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

↓ Energy.zip

AI Music powered by TikTok – SAMI.