-
... { |i, v ... h| val.do({ |subval, j| if( (v >= subval) && (h[0] < subval) ) { up.wrapAt(j).value(i, v, *h) }; if( (v < subval) && (h[0] >= subval) ) { down.wrapAt(j).value(i, v, *h) }; }); }; } *midiRecorderAdd { |i, val| // by default recor ...
-
... // draw the speaker layout Pen.translate(200,200); ((actPoint.theta + (0.5pi)).wrap2(pi) * rtoang).round(0.01).asString.drawCenteredIn( Rect.aboutPoint(0@170, 30, 10), Font.new("Arial", 10), Color.grey(0.8) ); Pen.strokeOval(Rect.aboutPoin ...
-
... ongMessage; }); // -> stops drawing all others too!!! // MFdef can handle this: wrap every function in case it fails: MFdef(\demoDraw).useTry = true; // and posts which line fails MFdef(\demoDraw).disable(\line0); // enable it again MFdef(\ ...
-
... lass to access HID devices Inherits from: Object GeneralHID is a cross platform wrapper for accessing HID devices. Currently the MacOSX and Linux HID support has been wrapped. Some of the code is inspired by the GUI wrapper. It is advised t ...
-
... te see CVWidget: -setCalibrate . default: true controllersAndModels if a widget wraps a CV that has been created within some CVWidget the models and controllers of that other widget can be added here. However, it is not recommended to do so ...
-
... bs, reciprocal, etc.), binary (+, -, *, /, **, min, max, etc.) and n-ary (clip, wrap, fold, linlin, linexp, etc.) operators are all valid with patterns. // Random integers, 1-5 Pwhite (1, 5, inf ).asStream.nextN(10); // Random integers 1-5, ...
-
... chID; // sometimes, a touch ends VERY quickly, before the node // even starts - wrap in a defer to catch these { [msg, touchID].postln; n[touchID].set(\gate, 0); n[touchID] = nil; }.defer(s.latency); }); // stuck notes? (the ones above do h ...
-
... tion: 2), shift = freq * Rand(inharmonicity.neg, inharmonicity), sig = SynthDef.wrap(oscfunc, prependArgs: [freq * detunes - shift]); sig = Splay.ar(sig, min(panWidth, panCenter.abs - panWidth), 1, panCenter); // can't make this an fx synth ...
-
... d also, for example, stop at the end: control.onEnd = { control.stop; }; ⧉ ✔ Or wrap back to the start: control.onEnd = { control.seek(0); }; ⧉ ✔ . seekLatency Add headstart given to the onSeek callback, i.e. call onSeek, and carry out the ...
-
... |dir| Array.with(dir, 0.0) }) }, 2, { argDirections } ).collect({ |thetaPhi| // wrap to [ + /-pi, +/-pi/2] Spherical.new(1, thetaPhi[0], thetaPhi[1]).asCartesian.asSpherical.angles }) }) } initFromMatrix { |aMatrix| var size, matrixOrder; / ...