try{
AdvancerRegistry advancerRegistry=new AdvancerRegistry();
advancerRegistry.clear();
globalParameters.setSampleRate(44100);
ProcessElement cos=new Cosine();
ProcessElement hi=new PseudoHilbert();
advancerRegistry.registerAdvancer(cos);
advancerRegistry.registerAdvancer(hi);
Time time=new Time(null);
Mixer mix=new Mixer();
advancerRegistry.registerAdvancer(mix);
// ConstStream cs1=new ConstStream(Math.log(10));
advancerRegistry.registerAdvancer(time);
BasicMath _exp=new exp();
advancerRegistry.registerAdvancer(_exp);
NamedSource cs=new ConstStream(Math.log(10));
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);
hi.setSource(StandardParameters.IN.i, cos, StandardParameters.OUT.i);
}catch(Exception te){
fail(te.getMessage());
}
OutputFile ws=new OutputFile(2);
mul m1=new mul();