bah. I'm giving up on measuring amplitude.
I dont really know what I'm measuring now. I'm just outputting to some LEDs to get some action on them.
If anyone can look at this and help me modify it a bit I would be forever grateful. I'm looking to do the following:
a) send 'HIGH' msg to Arduino pins 3, 5, at the beginning of sound playback.
send 'HIGH' msg to Arduino pin 6 at the 30 second point of sound playback.
c) send 'HIGH' msg to Arduino pin 10,11 at the 60 second point of sound playback.
d) Turn all pins 'LOW' as soon as the audio stops.
Not sure how to find these markers in the sound file or without writing enormously huge numbers in milliseconds.
or maybe its 30 x 44100? Thinking out loud here.
bah.
BAH!
http://www.pdpatchrepo.info/hurleur/media2.pd