-
... ,x,y,mod,dx,dy| if(dy > 0) { val = val + 0.05 } { val = val - 0.05 }; val = val.clip(0,2).round(0.01); t.string = val.asString; t.stringColor = Color.red(val); }; ) ⧉ ✔ Hooks for position and size change Since views can be automatically rep ...
-
... every FbNode. delaytime - the amount by which to delay the signal. This will be clipped to be between one block size (about 14 milliseconds by default) and the FbNode's maxdelaytime. If you didn't set a maxdelaytime when creating the FbNode ...
-
... , globalDur| var mOnset = bendWall.cumIntegral(onset); var pts = [0, peakOffset.clip(0, len), len]; var taus, levels; gEnv.timeLine.do{|tl| var pNom = (tl * globalDur) - s0; if((pNom > 1e-9) and: {pNom < (len - 1e-9)}) { pts = pts.add(pNom) ...
-
... ue = 2; // does action if it results in a change of value b.valueAction = 3; // clips to size of states b.valueAction = -1; // floats no problem b.valueAction = 3.3; ⧉ ✔ In a musical context, a button-down press is more meaningful than a bu ...
-
... ion; array.doAdjacentPairs(function); } // accessing at { arg i; ^array.at(i) } clipAt { arg i; ^array.at(i.clip(0,this.size -1))} wrapAt { arg i; ^array.at(i.wrap(0,this.size -1))} foldAt { arg i; ^array.at(i.fold(0,this.size -1))} put { a ...
-
... riation of a Color. Arguments: val Varies the RGB values +- this amount. lo Low-clips the RGB variation here. hi High-clips the RGB variation here. alphaVal Varies the alpha value +/- this amount, and clips it between 0 and 1. . complementa ...
-
... req]) }, \bufnum, Pfunc({ |ev| ~midinotes.indexInBetween(ev[\freq].cpsmidi) }) .clip(0, ~midinotes.size - 1.001) ).play; ) p.stop; b.do(_.free); ~baseBuf.free; ⧉ ✔ Previous: Pattern Guide Cookbook 04: Sending MIDI Next: Pattern Guide Cookbo ...
-
... unction does not explicitly create it. ( x = { var inA, chainA, chainB; inA = LFClipNoise.ar(100); chainA = FFT(LocalBuf(2048, 1), inA); chainB = PV_PhaseShift(chainA, pi); // half-circle phase shift should result in an inverse signal // in ...
-
... }; dur = dur ?? { score.displayDuration; }; scoreView.moveH = (score.pos / dur).clip(0,1); } { scoreView.refresh; }; } currentEditor{ ^scoreEditorsList.last } baseEditor{ ^scoreEditorsList[0] } currentScore{ ^scoreEditorsList.last.score } i ...
-
... airKeys(#[acc, accAmt], #[0, 1]); }; if(acc > 0) { gate = (gate * (accAmt + 1)).clip(0, 1) }; midinote = noteFunc.(freq.cpsmidi); if(bend.notNil) { this.bend(bend) // bendMsg.play(bend) }; defname.play(midinote, (gate * 127).asInteger); // ...