Processing Forum
void setup() {
size(256,200);
float[] buffer = new float[BSIZE];// start up Ess
Ess.start(this);
// get ready to stream our radio station (KXJC)
// (Ess.READ does not require a sample rate)
myFile=new AudioFile("t.wav",0,Ess.READ);
myFile.read(buffer,0, BSIZE);
for(int n = 0; n < BSIZE; n++){
println(buffer[n]);
point(n/50,buffer[n] * 400.0 + 100.0);
}
}
void draw() {
}
public void stop() {
Ess.stop();
super.stop();
}