-
... ue ) { input = if( \lowCut.kr( 0 ), BLowCut.ar( input, \lowFreq.kr( 20 ).lag(1).clip(20,22050), filterOrder ), input ); input = if( \hiCut.kr( 0 ), BHiCut.ar( input, \hiFreq.kr( 22050 ).lag(1).clip(20,22050), filterOrder ), input ); }; if( ...
-
... Pos = x@y; } }) .mouseMoveAction_({|v, x, y, mod| var point; if(moving) { x = x.clip(0,width); y = y.clip(0,window.view.bounds.height); point = WFSPointArray[WFSPoint(x,window.view.bounds.height-y)].scaleFromRect(newRect, fromRect)[0]; this ...
-
... nv.perc(0.01, 0.1, level: freqMul), t_trig, levelBias: 1 ); (~ffreq.kr(1) * eg).clip(20, 20000) }; // patch the filter envelope to the filter's frequency input ~lpf.set(\ffreq, ~feg); ~feg.set(\freqMul, 40); ~lpf.set(\rq, 0.1); // change th ...
-
... ).width/2, ub.height*0.35), f1); Pen.pop; alphaY= h3-(h3-h1*(alpha/bands[0][4]).clip(0, 1)); betaY= h3-(h3-h1*(beta/bands[1][4]).clip(0, 1)); Pen.push; Pen.translate(ub.width*0.575, ub.height*0.1); Pen.strokeColor= unfocusedColor; Pen.width ...
-
... e, \dbFactor, dbFactor]); }); } freqMode_ { arg mode; freqMode = mode.asInteger.clip(0,1); if(active, { server.sendMsg("/n_free", node); node = server.nextNodeID; this.start; }); } cmdPeriod { scope.changed(\cmdPeriod); // XXX was this if(a ...
-
... penClass ?? { GUI.pen }; this.asPenFunction( penClass ).value; penClass.fill; } clip { |penClass| penClass = penClass ?? { GUI.pen }; this.asPenFunction( penClass ).value; penClass.fill; } drawExtruded { |penClass, border = 2, angle, invers ...
-
... temSpec) and: {spec.itemSpec.isKindOf(ControlSpec)}},{ ^spec.map( this.unmap(v).clip(0.0,1.0) ) },{ ^v }) } color { ^Color.new255(125, 255, 205) } } + StaticSpec { color { ^Color.grey } } + NonControlSpec { color { ^Color.yellow(alpha:0.3) ...
-
... emSpec) and: {spec.itemSpec.isKindOf(ControlSpec)}}, { ^spec.map( this.unmap(v).clip(0.0, 1.0) ) }, { ^v }) } color { ^Color.new255(125, 255, 205) } } + StaticSpec { color { ^Color.grey } } + NonControlSpec { color { ^Color.yellow(alpha:0.3 ...
-
... w.bounds; } bounds_ {|bounds| view.bounds = bounds; } value_ {|val| value = val.clip(-1,1); case { val>0 } { view.setBackgroundImage(imageWhite, 10) } { val==0 } { view.setBackgroundImage(imageHole, 10) } { val<0 } { value = -1; view.setBac ...
-
... en, jBetween, level; // make sure we stick in 0..31 curBeat = curBeat%32; x = x.clip(0, 1); y = y.clip(0, 1); // get relevant map indices so 0..1 gets mapped to 0..3 // b/c drum map is 5x5 and we have a window of 2x2 so // we need to respec ...