-
... )); Pen.fillColor= Color.white; ~ibva.data.do{|val, y| Pen.fillRect(Rect(x, val.linlin(0, 1023, 0, chanHeight)+(y*chanHeight), 1, 1)); }; frameCount= frameCount+1; }; ~ibva= IBVA("/dev/tty.BlueVAS_H-Data", {}, 60, 0.3); //replace IBVA with ...
-
... Val.max(0); mouse= this.prCursor; if(warp==0 or:{warp==\linear}, { inval= mouse.linlin(0, this.prBounds, minVal, maxVal).yield; }, { if(warp==1 or:{warp==\exponential}, { inval= mouse.linexp(0, this.prBounds, minVal, maxVal).yield; }, { (th ...
-
... t)); if(key.isClicked, { velPoint= Point(whiteKeySize.width*0.5+x, key.velocity.linlin(0, 127, 5, whiteKeySize.height-5)); Pen.fillColor= Color.grey(0.75, 0.75); }, { Pen.fillColor= Color.white; }); Pen.addRect(key.rect); Pen.fillStroke; if ...
-
... eviation| // greyCenter >= 0 and <= 1, deviation > 0 and <= 1 var a = deviation.linlin(0, 1, greyCenter!3, [this.red, this.green, this.blue]) ++ [this.alpha]; ^Color(*a); } miSC_dim { |ctrButtonGreyCenter, ctrButtonGreyDev| ^this.miSC_iplTo ...
-
... if(d > 0,{ // where is xySpline x in space of a[0] b[0] ? interpd = blend(a,b,x.linlin(a[0],b[0],0.0,1.0)) },{ interpd = blend(b,a,x.linlin(b[0],a[0],0.0,1.0)) }) }); p = Array.fill(model.numDimensions,{ arg di; if(di == 0,{ xypoint[0] },{ ...
-
... =0 , mul=1 ; PlayBuf.ar(~buffer0.numChannels, ~buffer0, rate, trigger, startPos.linlin(0,1,0, ~buffer0.numFrames), 1)*mul;}); == radpostcont == (none) >> sr @1 1 == radpost == Ndef('recblock1', {arg recLevel=1 , preLevel=0 , fade=0.01 ; var ...
-
... { value = (msb << 7 + lsb); // Scale / Normalize if(normValues, { value = value.linlin( 0, maxValue, 0.0, 1.0 ); }); switch(functionKind, \function, { function.value(value, chan, cc1, cc2); }, \collection, { function.do{|funcInCollection| f ...
-
... ute=0, solo=1; (Ndef.ar('filterTrack_1_1', 1) * volume.dbamp.lag(lagTime) *mute.linlin(0,1,1,0).lag(0.1)*solo.lag(0.1) )}); Ndef('track1').set('volume', 0, 'lagTime', 0, 'mute', 0, 'solo', 1); == radpostcont == (none)
-
... 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 ...
-
... olor .rand( 0 , 0.8 ).alpha_( [ 1 , 0.5 , 1 , 0 , 1 , 0 , 1 ][i] ) ) .value_( i.linlin( 0 , 6 , 0.2 , 0.8 ) ) }); ) ( // random gradients x = { Color .rand( 0 , 0.8 ).alpha_( [ 1.0 .rand ** 2 , 1 ].choose ) }; w = Window ( "gradients" , Rec ...