Compare the waveforms.
|
Well I guess this might explain better than what I can with my own words so here: Swift iOS - How can I analyze a given MP3 file to determine what time the beats are at? - Stack Overflow
or would it be possible to have a "short sample sound", and then a long audio file, and have a program scan it and find whenever that short sound was played.
^if all that is too complicated, this is short of cheaphax, but what if I had the long audio file and everything else but the beat removed from it, would it be possible to detect whenever something at all is played?
Compare the waveforms.
I don't have experience about actually making something like this, but I'd imagine there are numerous ways to achieve what you want.
You could combine many techniques together to get somewhat reliable beat detection. Fourier transform the audio and work out the loudest frequency areas (Bassdrum has peaks at low freqs, snare is intensive at middle frequncies and some drums might have transient high frequency peaks), combine that with the detection of volume peaks at certain threshold dB / threshold volume increase over some delta-time, etc. The key thing I'd image is that you have to do some sort of integration, find the average of the values of the collected samples during certain timespans continuously and then use that stream of data for beat analyzation. Then just whenever your algorithms find something that could be a drum hit or whatever you are looking for, mark the exact point in time, or point in time + the approximated duration of the drum hit.
equalizers?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |