-
... , 10); // resize handles if( event.duration != inf ) { px5sq = scaledRect.width.linlin( 5, 5 * 3, 0, 5, \minmax ); Pen.addRect( scaledRect.copy.width_(px5sq) ); Pen.addRect( scaledRect.copy.left_(scaledRect.right - px5sq).width_(px5sq) ); P ...
-
... , 10); // resize handles if( event.duration != inf ) { px5sq = scaledRect.width.linlin( 5, 5 * 3, 0, 5, \minmax ); Pen.addRect( scaledRect.copy.width_(px5sq) ); Pen.addRect( scaledRect.copy.left_(scaledRect.right - px5sq).width_(px5sq) ); P ...
-
... = in.size; Array.fill(numchans, {|cNum| var phase = LFPar.kr(phaserrate * cNum.linlin(0, numchans, 0.95,1.05)).range(0.0088, 0.01); phaserdepth = phaserdepth.clip(0, 1); AllpassC.ar(in[cNum], 4, phase, 0, phaserdepth); }) }, level: 0.5, sp ...
-
... asFloat.rand2+addVal}; nextval= mulVal.asFloat.rand2+addVal; }); inval= counter.linlin(0, freqVal, nextval, outval).yield; counter= counter-1; }; ^inval; } } PLFNoise2 : PLFNoise0 { embedInStream {|inval| var freqStr= freq.asStream; var mul ...
-
... {arg volume=0, lagTime=0, mute=0, off=0; (\in * volume.dbamp.lag(lagTime) *mute.linlin(0,1,1,0).lag(0.1) *off.linlin(0,1,1,0) )}; if(chanNum.isArray.not, { chanMaster = chanNum; chanTrack = chanNum; chanBus = chanNum; systemChanNum = chanNu ...
-
... s.methodSelectorFor(original), original, replacement * (max + min) - min, ratio.linlin(0, 1, -1, 1) ) } // forward necessary methods to SynthDef *addUGen { |ugen| currentBuildSynthDef.addUGen(ugen); ugens = ugens.add(ugen); } *replaceUGen { ...
-
... .clear }; sliders.do({ |sl, ii| newColor = newColor.perform( sl[0], sl[1].value.linlin(0,1,-1,1) ); }); comp.background = newColor; }); }; sliders = [ \saturate , \hueAdd , \blendVal , \contrast , \brightness ].collect({ |item, i| [ item, G ...
-
... ving through the space instead of jumping across. // like this: // width = dist.linlin(10,100,num,width); // scale width with distance where num is the number of speakers one is using and width is the max width that is set elsewhere }); 0.1 ...
-
... ustain), doneAction:2); var son; son = Resonz.ar(WhiteNoise.ar(0.5.dup), energy.linlin(1, 0, freq, freq * 0.2), 0.4); Out.ar(out, son * energy) }).add ); /* (instrument: \outlet1, server: ~s.choose).play; (instrument: \outlet1, sustain: 3, ...
-
... und).abs.max(0.001) * lastPoint.asArray.collect({ |item| (item > 0).binaryValue.linlin(0,1,-1,1) }).asPoint, newPoint.round(round).abs.max(0.001) * newPoint.asArray.collect({ |item| (item > 0).binaryValue.linlin(0,1,-1,1) }).asPoint ]; // p ...