Skip to main content

Beats Detection

beats detection

Use Beats Detection to detect the rhythm pattern of a piece of music and output the beat in real time. All types of rhythm pattern will be quantified to 3/4 time or 4/4 time. The output value 1 represents the onset beat, which is usually the first beat of each measure. For example, music in 4/4 time will return 1, 2, 3, 4 in sequence, and music in 3/4 time will return 1, 2, 3 in sequence. Beats Detection is in the Audio category.

Input​

NameData TypeDescription
AudioAudio StreamThe audio stream you want to detect the beats 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.
Beat ValueNumberThe beats detection result. Return the beats value in 1, 2, 3, 4 sequence or 1, 2, 3 sequence.

Example​

↓ beats_detection.zip

It returns the beat value in 1, 2, 3, 4 sequence. The detected value will switch off and on four different colors on the background image. It is normal to have a 2 second accuracy delay.

beats detection node

AI Music powered by TikTok – SAMI.

Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies