//gkc: demonstration of dyna.gate() mode //a noise gate zeros events which do not exceed //a cutoff threshold. //this can be used to remove noise when it is not coincident //(and being potentially masked by) louder events sndbuf inst => dyna dyn => dac; "special:dope" => inst.read; noise n => dyn; n.gain( 0.005 ); //set the mode and presets dyn.gate(); //fiddle with the presets dyn.thresh( 0.01 ); dyn.attackTime( 11::ms ); dyn.releaseTime( 12::ms ); dyn.slope( -100000000 ); dyn.ratio( 0.0000001 ); inst.gain( 0.6 ); for(0=>int i; ;i++) { //toggle processing every 4 beats if ( i%4==0 ) { dyn.op( -dyn.op() ); <<<"op:",dyn.op()>>>; } inst.pos( 0 ); 1::second => now; }