accessing audio data
Hi !
I would like to detect events in the audio and take some action eg set a keyframe for another item.
Specifically I'm looking to count the number of peaks (like you would see in a slate clap say) within a time period and get this as a numeric value that I can use in other calculations.
There may be more than one such event per video frame however so ideally I would need access to the actual audio sample data.
Is there a way to get the audio data as an array of values say?
It's not so hard to look for a leading edge over a certain amplitude and count that as an "event" if you have the data.
I can't find anything about audio in the scripting guide, other than if an AVItem has audio or isEnabled.
Alternatively if this is available in Premier or Audition I am happy to work there but they do not seem to support scripting at all !
Anyone?
Thanks!
+Leo