Mixer fmix2=new Mixer();
Envelope fmenv=new Envelope();
CustomWaveform ts=new CustomWaveform();
ts.setTable(ct);
ProcessElement cw=new CustomWave();
advancerRegistry.registerAdvancer(cw);
advancerRegistry.registerAdvancer(si);
advancerRegistry.registerAdvancer(mix);
advancerRegistry.registerAdvancer(fmix);
advancerRegistry.registerAdvancer(fmix2);
advancerRegistry.registerAdvancer(fmul2);
advancerRegistry.registerAdvancer(fmenv);
advancerRegistry.registerAdvancer(fmul);
advancerRegistry.registerAdvancer(env1);
try{
mix.setSource(-1, cw, StandardParameters.OUT.i);
mix.setSource(-1, env1, StandardParameters.OUT.i);
gate.setSource(StandardParameters.FREQUENCY.i, beats, StandardParameters.OUT.i);
gate.setSource(StandardParameters.DUTYCYCLE.i, ConstStream.c(0.5), StandardParameters.OUT.i);
cw.setSource(StandardParameters.FREQUENCY.i, fmix2, StandardParameters.OUT.i);
cw.setSource(StandardParameters.TABLE.i, ts, StandardParameters.TABLE.i);
env1.setSource(StandardParameters.A.i, A, StandardParameters.OUT.i);
env1.setSource(StandardParameters.D.i, D, StandardParameters.OUT.i);
env1.setSource(StandardParameters.S.i, S, StandardParameters.OUT.i);
env1.setSource(StandardParameters.R.i, R, StandardParameters.OUT.i);
env1.setSource(StandardParameters.SYNC.i, gate, StandardParameters.OUT.i);