m4.setSource(IN_IMAG.i, ConstStream.c(0.125), OUT.i);
m3.setSource(IN.i, tdhs2, OUT.i);
m4.setSource(IN.i, cos, OUT.i);
advancerRegistry.registerAdvancer(ws2);
for(double t=0; t<3; t+=1/globalParameters.getSampleRate()){
advancerRegistry.advanceAll();
}
try{
File f=new File("tdhssweep1.wav");
BufferedOutputStream fos=new BufferedOutputStream(new FileOutputStream(f), fileBufferSize);
ws1.setFormat(FileFormats.FMT_WAVE_S16);