-
... function, create the data at 1/2 buffer size + 1 t = Signal .fill(513, { |i| i.linlin(0.0, 512.0, -1.0, 1.0) }); // linear function t.plot // t.asWavetable will convert it to the official Wavetable format at twice the size b.sendCollection ...
-
... 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, ...
-
... e)) }); //slider 1 k.elAt(\sl, 1).action_({ |elem| z !? _.set(\freq, elem.value.linlin(0.0, 1.0, 50, 2000) ) }); //knob 1 -> number of harmonics k.elAt(\kn, 1).action_({ |elem| z !? _.set(\numHarmonics, elem.value.linexp(0.0, 1.0, 1, 50) ) ...
-
... 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 ...
-
... 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( ...
-
... 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. ...