try{
AdvancerRegistry advancerRegistry=new AdvancerRegistry();
advancerRegistry.clear();
globalParameters.setSampleRate(44100);
ProcessElement cos=new Cosine();
ProcessElement all=new ParametricAllPass();
advancerRegistry.registerAdvancer(cos);
advancerRegistry.registerAdvancer(all);
Time time=new Time();
Mixer mix=new Mixer();
advancerRegistry.registerAdvancer(mix);
advancerRegistry.registerAdvancer(time);
BasicMath _exp=new exp();
advancerRegistry.registerAdvancer(_exp);
NamedSource cs=new ConstStream(Math.log(10));
ConstStream cs2=new ConstStream(100);
ConstStream cs3=new ConstStream(0.9);
try{
_exp.setSource(StandardParameters.IN.i, mix, StandardParameters.OUT.i);
mix.setSource(-2, cs, StandardParameters.OUT.i);
mix.setSource(-1, cs, StandardParameters.OUT.i);
mix.setSource(-1, time, StandardParameters.OUT.i);
cos.setSource(StandardParameters.FREQUENCY.i, _exp, StandardParameters.OUT.i);
all.setSource(StandardParameters.IN.i, cos, StandardParameters.OUT.i);
all.setSource(StandardParameters.FREQUENCY.i, cs2, StandardParameters.OUT.i);
all.setSource(StandardParameters.Q.i, cs3, StandardParameters.OUT.i);
}catch(Exception te){
fail(te.getMessage());
}
OutputFile ws=new OutputFile(2);
mul m1=new mul();