if (sounds > 10) {
// if sounds is > 10 then the microphone is the input
// source. Default is 11, but this way it doesn't matter
// if a wrong number gets inputed
// (8820 = buffer length of 1/5 of a second)
RTIn grin = new RTIn(this, sampleRate, channels, 8820);
grain = new Granulator(grin, sampleRate, channels, 50, 100);
vol = new Volume(grain, 0.95f);
//Volume vol2 = new Volume(vol,0.1f);
pan = new StereoPan(vol);
//SampleOut sout = new SampleOut(pan);