[PD] Identifying the position of notes in an (audio) array

hard off hard.off at gmail.com
Tue Oct 4 14:54:10 CEST 2005


[bonk~] detects sudden changes in frequency or amplitude or both...not
sure,. but it is pretty good at finding beats and sounds

if you have silence between your sounds, then you can use [env~] to
get the amplitude, and just set it to bang when it goes above a
threshold

both of these solutions require that you playback your audio at least
once to find the points where it is triggering sounds.

then, you just attach a [timer] object to record how long each bang
takes since the original bang, which you will trigger at the same time
as starting to play the file.

if your file is huge, and you don't have time to play it through once
to find the sounds, then you can use tabread4~ to play it much faster
than the original speed, and still hopefully be able to detect the
points where the sound increases.

i would store the info from [timer] into an array, and then later you
can just use [tabread] to trigger your sounds.

good luck.




More information about the Pd-list mailing list