Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Beat Detector

Helpful techniques for working with TouchDesigner. Answers only, no questions.

Beat Detector

Postby Diatom » Sat Jun 30, 2018 5:47 pm

I've attempted to tackle the tricky problem of beat detection. While this is not a perfect solution, it mostly does work, although it's best to use 'easy' music sources, such as techno, funk, or anything with loud kick at regular intervals.

Simply, it takes the music input (in this case, the audio device in, set to stereo mix, for web streaming), converts it to ffts, looks for the bins with the highest amplitude, then looks for interval regularity. Once a regular interval is detected, it spawns a timer that cycles to that interval. Multiple timers can be generated. From these, the most robust is chosen to set the global beat timer (which drives the beat chop).

This is a fairly rough attempt, but now that its mostly working, I want to release it into the wild so that someone else may use it or even better, improve it and repost. Long live the collective evolution~!

happy beat boxing
Thomas
Attachments
BeatDetectionAlpha.toe
(23.12 KiB) Downloaded 72 times
Diatom
 
Posts: 30
Joined: Sat Jan 14, 2012 9:06 pm
Location: Los Angeles

Re: Beat Detector

Postby DavidBraun » Sun Jul 01, 2018 11:07 pm

I tried to optimize a portion of it. I think the results are the same.
Attachments
maxAmpBin.tox
(1.94 KiB) Downloaded 87 times
DavidBraun
 
Posts: 315
Joined: Wed Feb 25, 2015 1:35 pm
Location: Chicago


Return to Techniques

Who is online

Users browsing this forum: No registered users and 2 guests