fl.setSource(FREQUENCY.i, ConstStream.c(0.366), OUT.i);
fl.setSource(DEPTH.i, ConstStream.c(0.0025), OUT.i);
fl.setSource(MAXDELAY.i, ConstStream.c(0.0075), OUT.i);
fl.setSource(DELAY.i, ConstStream.c(0.0033), OUT.i);
for(double time=0; time==0||in.getValue(GATE.i)>0; time+=1/globalParameters.getSampleRate()){
advancerRegistry.advanceAll();
}
File f=new File("flanger-out.wav");
BufferedOutputStream fos=new BufferedOutputStream(new FileOutputStream(f), fileBufferSize);
of.setFormat(FileFormats.FMT_WAVE_S16);
of.write(fos);