*/
public void createChain() {
//define the chain
SampleIn sin = new SampleIn(this, fileName);
ReSample reSample = new ReSample(sin, this.baseFreq);
Volume vol = new Volume(reSample);
StereoPan span = new StereoPan(vol);
if (wholeFile) {
sin.setWholeFile(wholeFile);
if (output == RENDER) sout = new SampleOut(span);