-
... t ); } constrain { |value| if( value.isNumber.not ) { value = default }; ^value.clip( minval, maxval ); } map { |value| ^value } unmap { |value| ^value } asControlSpec { ^ControlSpec( minval, maxval, \lin, 0, default ) } storeArgs { ^[minva ...
-
... mAmp, src; freq = Integrator.kr(\freqDrift.kr(0) * 0.001).linlin(-1, 1, 30, 68, clip: \none).midicps; freq = [0.719724, 0, 0.235] + freq; mFreq = freq * ( Integrator.kr(\mIdxDrift.kr(0) * 0.001).linlin(-1, 1, 0, 20, clip: \none)); mAmp = In ...
-
... fill; if (preAmp > 1.0) { Pen.color_(preSatCol); satPreLeft = (1 - (preAmp - 1).clip(0, 1)) * maxwid; nextRect = Rect( satPreLeft, 2, maxwid, height); if (isVertical) { nextRect = swapXYFunc.(bounds, nextRect) }; Pen.addRect(nextRect); Pen. ...
-
... l, { |value = 0.5, time = 0.1, order = 1| 4.do({ |i| var amt; amt = (order - i).clip(0,1) * (order ** -0.5 ); value = value.lag( time * amt ); }); UMapOut.kr(value); }, addToAll: false, extraPrefix: "lag_" ) .setSpec( \time, [0,10, 1.calcCu ...
-
... l, { |value = 0.5, time = 0.1, order = 1| 4.do({ |i| var amt; amt = (order - i).clip(0,1) * (order ** -0.5 ); value = value.lag( time * amt ); }); UMapOut.kr(value); }, addToAll: false, extraPrefix: "lag_" ) .setSpec( \time, [0,10, 1.calcCu ...
-
... locity.set(p.velocity.x, -0.9*p.velocity.y, 0); }); p.position.set(p.position.x.clip(0, width), p.position.y.clip(0, height), 0); }; win.front; CmdPeriod.doOnce({win.close}); Routine({ var nextTime; while({win.isClosed.not}, { nextTime= Mai ...
-
... s.lastForWhich({ |item| item[2] <= bar }) ? events[0]; } barAtBeat { |beat = 0, clip = false| var raw, mul; var num, denom, bar, sigStartBeat; if( clip ) { beat = beat.max( 0 ) }; #num, denom, bar, sigStartBeat = this.eventAtBeat(beat); mul ...
-
... s.lastForWhich({ |item| item[2] <= bar }) ? events[0]; } barAtBeat { |beat = 0, clip = false| var raw, mul; var num, denom, bar, sigStartBeat; if( clip ) { beat = beat.max( 0 ) }; #num, denom, bar, sigStartBeat = this.eventAtBeat(beat); mul ...
-
... it if you want. Lastly, the preamp control pushes the input signal above a hard clipping threshold to simulate a signal that's too loud going into an adc. If you don't want this effect, set the preamp control to 1. By Josh Mitchell June 202 ...
-
... plit the signal into two sections to prep it for the distortion section snda = (Clip.ar(osc, 0, 1) * 2) - 1; sndb = (Clip.ar((-1 * osc), 0, 1) * 2) - 1; // Set the amplitude of the signal going into the transfer function snda = snda * pream ...