beat.setSensitivity(250);
beat.detectMode(BeatDetect.FREQ_ENERGY);
bl = new BeatListener(beat, in);
fft = new FFT(in.bufferSize(), in.sampleRate());
fft.window(FFT.HAMMING);
fft.logAverages(120,4); // 32 bands
this.silenceThreshold = silenceThreshold;