import ddf.minim.*;
AudioPlayer player;
Minim minim;
void setup(){
size(1024,400,P3D);
smooth();
minim=new Minim(this);
player=minim.loadFile("vv.mp3",3000);
player.play();
}
void draw(){
background(0);
stroke(255);
for(int i=0;i<player.bufferSize()-1;i++){
strokeWeight(abs(player.left.get(i)*20));
line(i,150+player.left.get(i)*50,i+1,150+player.left.get(i+1)*50);
}
}