Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : How to generate a simple waveform of an entire sound file?

$
0
0
I figured out how to do it to some extent, but it would take me forever as I have to do +20 soundfiles of +5 mins as it requires the song to be playing. Is there a way to do it without playing the song? 

Here's what I have, using Minim

  1. void draw()
  2. {

  3.   // first perform a forward fft on one of song's buffers
  4.   // I'm using the mix buffer
  5.   // but you can use any one you like
  6.   fft.forward(song.mix);
  7.   ellipse(x,height/2,2,2);
  8.   ellipse(x,height/2 + song.mix.get(0) *500,2,2);
  9.   x+=0.04; 
  10.   if(x > width) x = 0;

Viewing all articles
Browse latest Browse all 1768

Trending Articles