-
... ion { var <a, <b, <c, <d; *new { |a, b, c, d| ^super.newCopyArgs(a, b, c, d) } *rand { |min, max| ^this.new(*{ rrand(min, max) } ! 4); } coordinates { ^[a, b, c, d] } * { |other| var a2, b2, c2, d2; if(other.isKindOf(Quaternion).not) { ^oth ...
-
... 1.0]]]); //pass motiflist as argument to choice indexfunc= if ? {motiflist.size.rand}; //adding additional level of hierachy myself motifpos=0; motifsize=0; currmotif=0; motifindex=0; } chooseblock { var temp,temp2,temp3; //new phrase to ca ...
-
... e bar's index to a shade number (numbers 1 through 8). // LaTeX.barChart({100.0.rand}.dup(10).collect{|item, index| (("Item"+index) -> item) }, precision: 3) *barChart { |vals, min=0, max, interval, shades=false, precision, extras| var str ...
-
... ); if (panin.isNumber) {basepan = panin} { switch (panin, 'scatter', {basepan = Rand(-1, 1)}, 'pos', {basepan = pos/bufsize * 2 - 1}, 'pitch', {basepan = (pitch - fracnotes[0])/(fracnotes[fracnotes.size-1] - fracnotes[0]) * 2 - 1}, {basepan ...
-
... | // if (char == $r) { // NTMI.mfx.pcpop.valueAction_(NTMI.mfx.pcpop.items.size.rand); // } // }; // // NTMI.mfx.pcpop = EZPopUpMenu(NTMI.mfx.win, Rect(0, 0, 200, 30), \, [\a, \b, \c], { |ezp| // NTMI.mfx.pcnum.value_(ezp.value); // "not wo ...
-
... ent = ~labels.at(wort).copy; if(event.isNil) { event = (freq: \rest, dur: 0.5pi.rand, wort: "(%)".format(wort)) } } { event = (type: \verb, wort: wort, verb: verb) }; events = events.add(event); }; events }; var sage = { |satz, kanal = \sta ...
-
... setRel, setAbs actions for whole array of knobs and ribons in one go. a = Array.rand(8, 0, 1023); bench { "[ 1000, 317, 888, 399, 551, 79, 674, 1011 ]".interpret }; bench { MFdef(\kr_pots).value(a.scramble) }; bench { MFdef(\setRelInf).( NT ...
-
... dForTest, { |t, r, msg| if(msg[1] == id) { test = true; } }).add ]; id = 100000.rand; this.waiting; this.makeGUI; fork { broadcastAddr.sendMsg(this.cmdForTest, id); 2.wait; if(test) { "Blackboard Broadcast is working." } { "Blackboard Broad ...
-
... terFX .clear(s.name); z = MasterFX (s, 24, [ \spkAdj ]); z.gui; ) ( // generate random data for 24 chans, 3 bands each, to test load: var data = { [ rrand(0.5, 1.0), // amp 0.01.rand ] // dt, max 10msec => 3.4m ++ ({ [ exprand(100, 10000), ...
-
... ree binding }, { playingPatch.stop.free }); ActionButton(parent, "RND", { patch.rand }); beatEditor = NumberEditor(beat, [0, min(model.beatDuration ? 128, 128) + 512 ]); CXLabel(parent, "At beat"); beatEditor.gui(parent); ActionButton(paren ...