//if (premapped) {
// grain = new Granulator(grin,durationArray,gpsArray,freqArray,ri,rgd,rf);
// } else {
grain = new Granulator(grin, 44100, 2, 50, 100);
// }
vol = new Volume(grain, 0.5f);
Volume vol2 = new Volume(vol, 0.1f);
pan = new StereoPan(vol2);
SampleOut sout = new SampleOut(pan);
} else {
// if sounds is < 0 or > 6 and < 11 then it will
// process an audio file. Default is 7. Again it is
// very open ended to accommodate wrong input numbers.
SampleIn grin = new SampleIn(this, this.fileName);
//if (premapped) {
// grain = new Granulator(grin,durationArray,gpsArray,freqArray,ri,rgd,rf);
// } else {
grain = new Granulator(grin, 44100, 2, 50, 100);
//}
vol = new Volume(grain, 0.5f);
Volume vol2 = new Volume(vol, 0.1f);
pan = new StereoPan(vol2);
SampleOut sout = new SampleOut(pan);
}
} else {
// At this stage the only values left are between 0-6
// These correspond directly to the oscillator input
// values, so can be added directly.
Oscillator grin = new Oscillator(this, sounds, 44100, 2);
//if (premapped) {
// grain = new Granulator(grin,durationArray,gpsArray,freqArray,ri,rgd,rf);
// } else {
grain = new Granulator(grin, 44100, 2, 50, 100);
//}
vol = new Volume(grain, 0.5f);
Volume vol2 = new Volume(vol, 0.1f);
pan = new StereoPan(vol2);
SampleOut sout = new SampleOut(pan);
}
}