-
... -1, 1 ); scaleValue = { |val, fr, mode = \none| if ( abs(curve) < 0.001 ) { val.linlin( *fr ++ [ -1, 1, mode ] ); } { val.lincurve( *fr ++ [ -1, 1, curve, mode ] ); }; }; switch( clipMode, \clip, { value = scaleValue.value( value, fromRange ...
-
... c = [0,b.numFrames-1].asSpec; index = ispec.map(inSpec.unmap(x)); },{ index = x.linlin(inSpec.minval,inSpec.maxval,0,b.numFrames-1) }); ^BufRd.perform(rate,1,b,index,0,4) } ar { arg x,divisions=128; // Shaper better ? ^this.kr(x,divisions,\ ...
-
... trigPeriod/2-(BlockSize.ir/SampleRate.ir)); rVal1 = (Latch.ar(rVal, trig1)>=0).linlin(0,1,-1,1)* Latch.ar(XFade2.ar(K2A.ar(1), localIn, EnvGen.kr(Env([-1,-1, 1], [trigPeriod, 0]), 1)), trig1); rVal2 = (Latch.ar(rVal, trig2)>=0).linlin(0,1, ...
-
... inScale, maxScale); # a, b = LinExp.kr([c_1a, c_2b], 0, 1, 20, 13000); # c, d = LinLin.kr([c_3c, c_4d], 0, 1, 0, 12*8); #f, h = ([c_6f, c_8h ]).lag(robLag).cubed; // just curve .. i = LinExp.kr(c_8i, 0, 1, minScale, maxScale).lag(robLag)-0. ...
-
... modulate the rate of the trigger and the startPosition trig = Impulse.ar(speed.linlin(0.0, 10.0, 15.0, 60.0 )); in = PlayBuf.ar(1, bufnum, BufRateScale.kr(bufnum), trig, speed.linlin(0, 10.0, 5000, BufFrames.kr(bufnum)), 0)*0.7; Decay2.ar( ...
-
... ; values; }, \invert, { |values| values = this.unmap( values ); values = values.linlin( values.minItem, values.maxItem, values.maxItem, values.minItem ); this.map( values ); }, \reverse, { |values| values.reverse; }, \sort, { |values| value ...
-
... action: { arg array; fromBuffer = array }); calcVal = [bufSize >> 1, bufSize-1].linlin(0, bufSize, -1, 1); this.assert( fromBuffer.first.equalWithPrecision(-1) && this.getSignalMidValue(fromBuffer).equalWithPrecision(calcVal.first) && fromB ...
-
... ip { |other| ^this * max(other, 0) } scaleneg { |other| ^this * (this.real.sign.linlin(-1, 1, other, 1)) } clip2 { |other| ^max(min(this, other.neg), other) } clip { |lo, hi| ^max(min(this, hi), lo) } mod { |other| ^this.class.new(mod(this. ...
-
... sFunc; var specOptions, thisResult; if(thisFunc.notNil, { specOptions= (0..127).linlin(0,127,0,1.0).collect({|item| thisFunc.(thisSpec.map(item.round(0.01))) }); thisResult = specOptions.indexIn(unmapVal).linlin(0,127,0,1); }, { thisResult ...
-
... Conf.n / unitSize).floor.asInteger).collect({ |i| points[0].blend( points[1], i.linlin( -0.5, (arrayConf.n / unitSize) - 0.5, 0, 1 ) ); }); Pen.color = Color.black.alpha_(0.25); Pen.font = Font( Font.defaultSansFace, 9, true ); unitPoints.d ...