MInim Wavform of Samlpe
in
Core Library Questions
•
2 years ago
Hi folks,
I programmed a music recorder and now I want to visualize alle the Samples I recorded. I want to represent a Sample by a Box with the whole waveform of it. How do I get access to the Data of my Sample?
I thought of loading it by:
AudioSample samp = minim.loadSample("samp"+i+".wav", 512);
Then accessing the Buffers by:
float[] left =samp.left.toArray();
But it seams the the Array is empty? And I get a Buffer underrun message all the time?
thx 4 help
I programmed a music recorder and now I want to visualize alle the Samples I recorded. I want to represent a Sample by a Box with the whole waveform of it. How do I get access to the Data of my Sample?
I thought of loading it by:
AudioSample samp = minim.loadSample("samp"+i+".wav", 512);
Then accessing the Buffers by:
float[] left =samp.left.toArray();
But it seams the the Array is empty? And I get a Buffer underrun message all the time?
thx 4 help
2