-
... ickMap} ); // make sure we stick in 0..31 curBeat = curBeat.asInteger%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 ...
-
... tion_({|v, x, y, mod| var point, tempPath, dif; if(currentIndex.notNil) { x = x.clip(0,window.view.bounds.width); y = y.clip(0,window.view.bounds.height); point = WFSPoint(x,y).fromScreenCoord(bounds,fromRect); switch(this[currentIndex].cla ...
-
... e.asCollection; if( value.size != 4 ) { value = value.extend( 4, 0 ); }; ^value.clip([0,0,0,1], [1, 1, 1, 8]).round([0,0,0,1]); } map { |value| ^this.constrain( value ); } unmap { |value| ^this.constrain( value ); } storeArgs { ^[ default ] ...
-
... ); ghostWidthHalf = ghostBounds.width; ghostBounds.left = xpos - ghostWidthHalf.clip(0, dict[\width]); ghostLabel.drawCenteredIn( Rect.aboutPoint(centPt, ghostWidthHalf, dict[\height] *0.5), dict[\hiFont]); }; }); } drawNumber { switch(this ...
-
... r = Color.gray(0.2).alpha_(0.5); Pen.addRoundedRect( bounds.insetBy(0,0), 6, 6).clip; Pen.color = Color.gray(0.2).alpha_(0.125); hlines.do({ |hline,i| hline = hline.linlin( range.neg,range, bounds.height, 0, \none ); Pen.line( 0@hline, boun ...
-
... s; classvar <defaultVoiceName; classvar <pendingPIDs, <>maxPIDs = 10; classvar <clipRate = true; classvar <>minRate = 90, <>maxRate = 720; *killAll { thisProcess.platform.killAll("say") } *initClass { Platform.case(\osx, { fxVoiceNames = [ ...
-
... ntSize); if (chatMessage.isEcho, { contentsTextView.align = \right; }); } ); // Clip lengthy code segments so they don't blow up the chat if (chatMessage.type === \code, { if (contentsTextView.sizeHint.height > codeMaxHeight, { contentHeigh ...
-
... 1); idTxtColor = Color.hsv( *baseColor.asHSV .put(2, (baseColor.asHSV[2] * 1.8).clip(0, 1)) .put(1, baseColor.asHSV[1] * 0.2)); idTabColor = Color.hsv( *baseColor.asHSV .put(2, (baseColor.asHSV[2] * 1.2).clip(0, 1)) .put(1, baseColor.asHSV[ ...
-
... selector,args,preFunc) } } boxPoint { arg x,y;// view coords var col,row; x = x.clip(bounds.left,bounds.right); col = ((x-bounds.left / bounds.width) * (numCols)).asInteger; y = y.clip(bounds.top,bounds.bottom); row = ((y-bounds.top / bound ...
-
... in.isNil ) { ^inf } { ^uchain.dur; }; } /* * sets same duration for all units * clipFadeIn = true clips fadeIn * clipFadeIn = false clips fadeOut */ dur_ { |dur = inf, clipFadeIn = true| var currentDur, mul; currentDur = this.dur; if( (curr ...