-
... , 80+i, 1024); }; ) ( // fill tables 80 to 87 8.do({ |i| var n, a; // generate array of harmonic amplitudes n = (i+1)**2; // num harmonics for each table: [1,4,9,16,25,36,49,64] a = { |j| ((n-j)/n).squared }.dup(n); // fill table s.listSen ...
-
... _(function) uid unique identifier of the MIDI port system exclusive data an Int8Array (includes f0 and f7) see manufacturer references for details note: The current implementation assembles a complete system exclusive packet before evaluati ...
-
... ndow .new; w.front; // draw it and bring it to the front *allWindows Returns an Array of all open SCWindows. *initAction *initAction_(func) Get/set and action to be performed when any window is created. func - An instance of Function or Fun ...
-
... k02_Manipulating_Patterns Merging (interleaving) independent streams Reading an array forward or backward arbitrarily Changing Pbind value patterns on the fly PG_Cookbook03_External_Control Control of parameters by MIDI or HID Triggering pa ...
-
... omposition). Pseq (Pattern-sequence) means simply to spit out the values in the array one by one, in order, as many times as the second argument (here, only once). p = Pseq ([60, 72, 71, 67, 69, 71, 72, 60, 69, 67], 1); r = p.asStream; whil ...
-
... s example, the selection of the next phrase is explicitly weighted by repeating array elements, such as #[1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5]. A more elegant way to do this is using the WeighBag class in the MathLib quark. // the following are ...
-
... 0, n=3; var step, f, t, i; sustain = sustain.value; step = (to - from) / n; f = Array .series(n, from, step) +.t [0.0, step]; i = n div: 2; f[i] = f[i].reverse; Pbind ( \instrument , \play_from_to , [ \from , \to ], Pseq (f), \legato , 1.0, ...
-
... 0@0); Pen .fill; Pen .rotate(0.2pi); c = c + 0.1; }); }; w.refresh; ) *matrix_ (array) transforms coordinate system. array = [a, b, c, d, x, y] a zoomX b shearingY c shearingX d zoomY x translateX y translateY ( var controlWindow, w; var r, ...
-
... tches.reverse[ .. pitches.size - 2], inf ), // if the note is found in the mask array, replace it with \rest // then that note does not sound \note , Pif ( Pfunc { |event| mask.includes(event[ \arpeg ]) }, \rest , Pkey ( \arpeg )), \octave ...
-
... a.do{ arg a;a.view.background_( Color .grey.alpha_(0.4))}; ) // a now holds the array of knobs a a[0].value a[3].value_(0.5) a.collect( _ .value );