Event tom=new Event();
ProcessElement ev=new Envelope();
ProcessElement m=new mul();
ProcessElement m1=new mul();
ProcessElement m2=new mul();
ProcessElement p1=new plus();
ProcessElement p2=new plus();
ProcessElement st=new SawTooth();
try{
ev.setSource(SYNC.i, tom, GATE.i);
ev.setSource(A.i, ConstStream.c(0.01), OUT.i);
ev.setSource(D.i, ConstStream.c(1), OUT.i);
ev.setSource(R.i, ConstStream.c(1), OUT.i);
ev.setSource(S.i, ConstStream.c(0), OUT.i);
m.setSource(IN_IMAG.i, ev, OUT.i);
m.setSource(IN.i, st, OUT.i);
m1.setSource(IN_IMAG.i, ev, OUT.i);
m1.setSource(IN.i, ConstStream.c(20), OUT.i);
p1.setSource(IN_IMAG.i, m1, OUT.i);
p1.setSource(IN.i, ConstStream.c(150), OUT.i);
st.setSource(FREQUENCY.i, p1, OUT.i);
p2.setSource(IN_IMAG.i, m2, OUT.i);
m2.setSource(IN.i, ConstStream.c(0.3), OUT.i);
m2.setSource(IN_IMAG.i, ev, OUT.i);
p2.setSource(IN.i, ConstStream.c(0.5), OUT.i);
st.setSource(DUTYCYCLE.i, p2, OUT.i);
}catch(UnknownConnectionException e){
e.printStackTrace();
}catch(TypeMismatchException e){
e.printStackTrace();