minim: how do I make an Array out of a complete audio track?
in
Core Library Questions
•
20 days ago
Hi,
I have an audio file that I want to load with minim and get the whole waveform data (not the stream, the whole thing) into a single array to further process it into infographics or whatever.
I managed to do this with AudioSample ("float[] leftChannel = sample.getChannel(BufferedAudio.LEFT);"), but I now have way too many floats in my array, like 5 million for a 2 min. long track (only left channel). Can I compress the values of the array somehow to have a shorter array that I can work with? Has it something to do with the sampling rate of the audio file? Sorry, I'm not very familiar with this audio stuff.
On the minim website (
http://code.compartmental.net/tools/minim/manual-audiosample/) it says that AudioSample is meant for short sounds, so maybe I need a different approach?
Hope someone can help me, thanks!
1