-
... snd = SinOsc.ar(freq + fm, 0, env) * lfo; snd = RLPF.ar(BufRd.ar(1,~buff, LinLin.ar(snd, -1.0, 1.0, 0.0, BufFrames.kr(~buff))), 2000, 2.reciprocal) * 0.25; Out.ar(0, Pan2.ar(snd, 0)); }).add; ) ( var seq = [66, 73, 85, 76, 6 ...
-
... def( \testSynth ).set( \t_trig, 1, \amp, el.value ) }; //// mapping ranges: /// linlin: Ndef( \testSynth, { arg freq=440, ampin=64, t_trig=1, dur=1; SinOsc.ar( freq, 0, ampin.linlin( 0, 1, 0, 0.8 ) ) * EnvGen.kr( Env.perc, t_trig, timeScale ...
-
... ; bnds = this.drawBounds.extent.asArray.neg; ^this.move.collect({ |item,i| item.linlin( 0.5,1.5,0, bnds[i] * (this.scale[i] - 1), \none); }); } movePixels_ { |newPixelsArray, limit, refreshFlag| var bnds; limit = limit ? true; newPixelsArra ...
-
... to an amplitude using Latch and some range mapping: e.g., Latch.kr(gate, gate).linlin(0, 1, 0.1, 0.5) . The note data are also provided to an event pattern that supplies arbitrary arguments for each note. See -noteOnArgsPat . Class Methods ...
-
... from MIDI CC callbacks: SamplerQuery.playing[0].do{|voice| voice.set(\amp, ~cc7.linlin(0, 127, 0, 1))}; ⧉ ✔ Voices remove themselves when they end. . releaseGesture Gate off every playing voice tagged with one of the given gesture IDs (0.1 ...
-
... Select.kr( curve.inRange(-0.001,0.001), [ sig.lincurve(0,1, a, b, curve ), sig.linlin(0,1, a, b ) ]); UMapOut.kr(sig); }) .setSpec( \curve, [-16,16,\lin,0,0].asSpec ) .setSpec( \timeScale, [0.25,4,\exp,0,1].asSpec, \init ) .uchainInitFunc_ ...
-
... // "move mode vis".postln; star = g.main.movevals.collect { |val, i| Polar(val.linlin( 0, 1, 40, 240), i / 9 * 2pi).asPoint + center; }; // star.postln; Pen.color = Color.yellow; Pen.width = 3; star.wrapExtend(10).doAdjacentPairs { |p1, p2 ...
-
... Select.kr( curve.inRange(-0.001,0.001), [ sig.lincurve(0,1, a, b, curve ), sig.linlin(0,1, a, b ) ]); UMapOut.kr(sig); }) .setSpec( \curve, [-16,16,\lin,0,0].asSpec ) .setSpec( \timeScale, [0.25,4,\exp,0,1].asSpec, \init ) .uchainInitFunc_ ...
-
... inMin: -5, inMax: 5, outMin: 1/1000, outMax: 1, ) } convertVoltage {|vol| ^vol.linlin( inMin: 0, inMax: 10, outMin: 0, outMax: 1, ) } convertKey {|k| ^k.linlin( inMin: -5, inMax: 5, outMin: -1, outMax: 1, ) } // Setters de los parámetros s ...
-
... me(super.backgroundColor); if(super.polarity == \uni) { thisAlpha = super.value.linlin( super.min, super.max, thisMinAlpha, 1 ); } { if(super.value.abs == super.min) { thisAlpha = thisMinAlpha; } { if(super.value.abs == super.max) { thisAlp ...