-
... {arg knob; // update array of partials partialArray[count] = knob.value.linlin(0, 1, -0.2, 0.2).round(0.01) + count + 1; // if this partial is currently playing, update its partial number (thus freq): if(spectrum[count].isNi ...
-
... update oscFn = OSCFunc({arg msg; { indicator.value = (1-msg[3]).ampdb.linlin(maxReduc, 0, 0, 1); }.defer; }, '/level', s.addr); }.fork(AppClock); ) // Try it with this simple example ( // something to meter b = B ...
-
... ty.kr( tempo.reciprocal * Drand((1,4..48), inf), 0, Drand((0..10).linlin(0,10,0,2*pi),inf) )) // not sure ).range(-0.5,5.5), [ // perc BrownNoise.ar(LFNoise2.kr(0.1.exprand(1)).range(0.3,0.75)), Wh ...
-
... en.fillColor = colors[(degrees[i] % 12)]; Pen.addRect(Rect(0, degrees[i].linlin(-1,12,height, 0)+(barheight*(ampscaled/2.0)), w.bounds.width, barheight*ampscaled)); Pen.perform(\fill); }); }; }; noteEvents ...
-
... snd + Pan2.ar(SelectX.ar(Lag.kr(temp_vowel, temp_lag), [va, ve, vi, vo, vu]), i.linlin(0, 4, -1, 1)); }; snd = Compander.ar(snd, snd, -30.dbamp, 1, 0.5, 0.01, 0.1) * 6.dbamp; snd = FreeVerb2.ar(snd[0], snd[1], 0.5, 1, 1); ...
-
... + verbSig; }; //dry/wet mix totalSig = XFade2.ar(sig, totalSig, mix.linlin(0,1,-1,1)); outSig = totalSig * amp; Out.ar(out, outSig); }).add; SynthDef(\filtSaw, { arg freq=440, detune=3.0, atk=6, sus=4, rel=6, c ...
-
... ); label.font = font; slider.mouseDownAction = { |slider, x| value = (x).linlin(0,slider.bounds.width,0,1); synth.set(\freq, value.linexp( 0, 1, 110, 220)); label.string = "Frequency: " + value.linexp(0,1,110,220).trunc(0.01); ...
-
... mplitude change in EZNumber box { 100.do({arg i; {o.valueAction = i.linlin(0, 99, 1, 0).round(0.01)}.defer; (shortNoteDur/100).wait; }) }.fork; // button.value.postln; }); Button.new(i, 132@50) .states_([ ...
-
... 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; // Same as above, but adding ...
-
... 5, m; ([256, 0].includes(m)).if{ // restrict to no modifier value[0] = (x).linlin(0,slider.bounds.width,0,1); // Linear mapping between the slider size and 0 -> 1 value[1] = (y).linlin(0,slider.bounds.height,0,1); slider.doAction ...