-
... s: 1, bufnum: buffer, rate: rate, startPos: startPos.linlin(0, 1, 0, BufFrames.kr(buffer)) ); snd = snd * env; snd = Pan2.ar(snd, panning); Out.ar(0, snd); }).add; SynthDef("clap", {arg rate ...
-
... e flexibe when used inside synthdefs { SinOsc .ar( EaseInAtan. ( SinOsc .kr(1)).linlin(0, 1, 500, 5000), 0, 0.1)}.play //becomes kr { SinOsc .ar( EaseInAtan .kr( SinOsc .ar(1)).linlin(0, 1, 500, 5000), 0, 0.1)}.play //kr with ar arg { SinOs ...
-
... s); Out .ar(0, Pan2 .ar( SinOsc .ar(pos[1].linexp(8,0,220,440), 0, 0.1), pos[0].linlin(0,8,-1,1))); }.play(s); ) t = h.monitorBus(b); // Returns a running Task t.stop; x.free; b.free; // tidy up *plot2DfileData(path, title, labels, rowlen=3 ...
-
... freq + oscArray.inject(0, {|sum, osc, j| sum + (osc * modIndex[i][j].linlin(0, 3, 0, 10000)) }), modIndex[i][i] ); oscArray ++ tmpOsc; }); // end inject (oscs * amps).sum; }) ) Ndef(\fmMatrix).gui ...
-
... patterns (or compatible pattern inputs) examples of n-ary operators are: blend, linlin, linexp, explin, expexp, clip, fold, wrap. See also: Pbinop , Punop , NAryOpFunction // example ( var a; a = Pnaryop ( \wrap , Pseries (0, 1, 12), [3, 7] ...
-
... width / (this.size / numChannels)); unlaced.do({ |chan, j| chanArray[j] = chan.linlin( minval[j], maxval[j], 0.0, 1.0 ); }); }, { zoom = (width / (this.size / numChannels)); thumbsize = 1; unlaced.do({ |chan, j| val = Array.newClear(width) ...
-
... rightBottom ); //.round( step ); } map { |value| ^this.constrain( value.asPoint.linlin(0, 1, rect.leftTop, rect.rightBottom, \none ) ); } unmap { |value| ^this.constrain( value.asPoint ).linlin( rect.leftTop, rect.rightBottom, 0, 1, \none ) ...
-
... MIDIdef.cc( key: \duration, func: {arg val, ccnum; duration = val.linlin(0, 127, 0.5, 10); ("Duration is "++duration.round(0.1)++" seconds").postln}, ccNum: 10, // Long Slider chan: quneoChannel); SynthDef(\risse ...
-
... OAEncoder.ar(~order, WhiteNoise.ar(1), 0, MouseY.kr(-pi * 0.5, pi * 0.5) .round.linlin(0,1,-pi,pi) )}; ⧉ ✔ You did not see any change in the oscilloscope? The directional information is not only in the gain that you see in the white noise, ...
-
... : // shrink butz width for small screens var leftMinWidth = NTMI.g.bounds.width.linlin(480, 1200, 80, 130); var topMinHeight = NTMI.g.bounds.height.linlin(320, 1200, 100, 230); var botMinHeight = NTMI.g.bounds.height.linlin(320, 1200, 0, 23 ...