browse OpenProcessing
This sketch may not be working well on browsers, it is provided for source code sharing purposes...
Spectrograms
doesn't work as applet... if you download the source, it paints spectrograms :P

You should provide the text below when attributing this sketch:
Spectrograms by Luis Nicolás Coronado, licensed under Creative Commons Attribution-Share Alike 3.0 license.
Work: http://openprocessing.org/visuals/?visualID=5995
License: http://creativecommons.org/licenses/by-sa/3.0/
Embed Code
Copy and paste the html code below to embed the applet to your blog or website.
comments
source code
import ddf.minim.analysis.*;
import ddf.minim.*;
Minim minim;
AudioInput song;
FFT fftLog;
float step;
void setup()
{
size(1280, 512, P2D);
smooth();
minim = new Minim(this);
song = minim.getLineIn(Minim.STEREO, 1024);
fftLog = new FFT(song.bufferSize(), song.sampleRate());
rectMode(CORNERS);
background(0);
step=1;
}
void draw()
{
fftLog.forward(song.mix);
for(int i = 0; i < fftLog.specSize(); i++)
{
colorMode(HSB,100,100,100,100);
stroke((100-fftLog.getBand(i))*0.8,100,100,fftLog.getBand(i));
point((frameCount*step)%width,height-i);
}
}
void keyPressed(){
if(key=='s'){
println("saving...");
saveFrame("thinguies-####.png");
println("saved.");
}
}
void stop()
{
song.close();
minim.stop();
super.stop();
}