We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › how to display the waveform without play the song
Page Index Toggle Pages: 1
how to display the waveform without play the song (Read 714 times)
how to display the waveform without play the song
Nov 15th, 2008, 4:32pm
 
hi,

i need to show the waveform without play the song, is it possible with minim?

Re: how to display the waveform without play the s
Reply #1 - Nov 25th, 2008, 4:59am
 
You can currently do this by loading the file into an AudioSample using loadSample and then getting the sample buffer with getChannel. Then you can use that buffer to draw the waveform onscreen. But, be aware that doing this will load the entire file into memory, which might be an issue if your file is very large.

See:http://code.compartmental.net/minim/javadoc/ddf/minim/BufferedAudio.html
Page Index Toggle Pages: 1