-
... xprange( 0.01, 0.8 ) ) * EnvGen.kr( Env.perc, t_trig, timeScale: dur ) } ); /// clipping, folding, wrapping Ndef( \testSynth, { arg freq=440, ampin=64, t_trig=1, dur=1; SinOsc.ar( freq, 0, ampin.clip( 0, 0.2 ) ) * EnvGen.kr( Env.perc, t_tri ...
-
... .amt 5 //We can change the distortion too ~distortion = { (\in.ar * \amt.kr(1)).clip(-1, 1) };
-
... v| ^this.prflopSorted(v){ |ab,x| (x >= ab[0] ) && (x <= ab[1]) }.reduce('&&') } clipVector { |v| ^this.prflopSorted(v){ |ab,x| x.clip(ab[0], ab[1]) } } mapVector { |v| ^this.constrain( this.prDoFlopWith(v){ |a,b,x| x.linlin(0, 1, a, b, \non ...
-
... , \c.kr(0!n), \d.kr(0!n), \e.kr(0!n) ]; var activity = (influxes.sum.sum * 0.3).clip(0, 1); var influxes2 = influxes + xtalk.lag(0.5); var freqs = ([ (modIn * influxes2[0]).sum, (modIn * influxes2[1]).sum, (modIn * influxes2[2]).sum, (modIn ...
-
... , \c.kr(0!n), \d.kr(0!n), \e.kr(0!n) ]; var activity = (influxes.sum.sum * 0.3).clip(0, 1); var influxes2 = influxes + xtalk.lag(0.5); var freqs = ([ (modIn * influxes2[0]).sum, (modIn * influxes2[1]).sum, (modIn * influxes2[2]).sum, (modIn ...
-
... var sig = GrayNoise.ar(amp.dup); sig = env * sig; ffreq = ((mod*env+1) * ffreq).clip(20, 20000); sig = RLPF.ar(sig, ffreq, 1/reso); Limiter.ar(sig, amp); }); fork { s.sync; 0.1.wait; Ndef(\etude).end }; Ndef(\etude);
-
... init } constrain { arg value; // allows nil ^if( value.notNil ) { value.asFloat.clip(clipLo, clipHi).round(step) } { if( allowNil.not ) { default } }; } } MIDINumberSpec : MIDIValueSpec { *new { arg minval=0, maxval=127, warp='lin', step=1, ...
-
... 0, size = 10| which = which + 1; ^size.collect({ |i| (which - i).wrap2(size/2).clip(0,2).fold2(1); }); } // convenience methods (no different from *new) *kr { |which = 0, array, lag = 0.1| ^this.new( which, array, lag ); } *ar { |which = 0 ...
-
... init } constrain { arg value; // allows nil ^if( value.notNil ) { value.asFloat.clip(clipLo, clipHi).round(step) } { if( allowNil.not ) { default } }; } } MIDINumberSpec : MIDIValueSpec { *new { arg minval=0, maxval=127, warp='lin', step=1, ...
-
... rn energy weighted average magnitude. Arguments: mindb a minimum value in dB to clip amplitude response to. Prevents singularities. . rho Synonym for -magnitude . energyDensity Return the energy density. . totalEnergy Return the total energ ...