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.
Page Index Toggle Pages: 1
static waveform (Read 512 times)
static waveform
Jul 3rd, 2009, 6:26am
 
Hi all,

   i am developing an application where a static waveform of a sound must be visualized. Like the waveforms used on the sound edition tools.
The main issue i have using prototype is that i can visualize the waveform while the audio file is being played, and it cannot be pre-rendered.
I think that i cannot accomplish this task by using Mimic, but i can do it by using ESS.

With the following lines of code i retrieve the samples of a sound file:

AudioChannel ac = new AudioChannel("c:\\r2d201.mp3");
float[] samples = ac.samples;

Now i need to know how can i make the fourier transformation on an entire array of samples, instead of on parts of it using the fft.forward function.

I hope someone can help me because i cannot find a solution right now.

Thanks in advance!

       Pablo


Page Index Toggle Pages: 1