-
... 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, ...
-
... ~degree = 0; A scale degree index into the ~scale. 0 is the root and the scale wraps in the manner defined by degreeToKey. ~mtranspose = 0; A modal transposition value that is added to the scale degree. ~gtranspose = 0; A gamut transpositi ...
-
... th parameters being pulled from each array in parallel. The shorter arrays will wrap. for example, the following: Pulse .ar([400, 500, 600],[0.5, 0.1], 0.2) is equivalent to: [ Pulse .ar(400,0.5,0.2), Pulse .ar(500,0.1,0.2), Pulse .ar(600,0 ...
-
... play these patterns in succession, one by one. (Plazy embeds just one pattern; wrapping Plazy in Pn does it many times.) The logic in this example is a bit more involved: for each measure, start with arrays containing the basic rhythmic pa ...
-
... to print different things to the post window. Do this with both blocks of text wrapped in parentheses, and single lines. ____________________ This document is part of the tutorial Getting Started With SuperCollider . Click here to go on to ...
-
... r a GUI widget from a Routine , which uses the SystemClock by default, you must wrap it in a deferred function: { myWindow.bounds_( Rect(100,500,200,200) ) }.defer . You do not need to use .defer, if you use the AppClock . Creation / Class ...
-
... dexing: .at(index) or [index] collection @@ integer collection/array indexing: .wrapAt(int) collection @|@ integer collection/array indexing: .foldAt(int) collection |@| integer collection/array indexing: .clipAt(int) Set operators set & se ...
-
... ndices given by keys . If one of the two argument arrays is longer then it will wrap. y = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; y.putEach([4, 7], [ \smelly , \head ]) y.putEach([2, 3, 5, 6], \wotsits ); atAll(keys) return a collection of all the ...
-
... eeded, but output only 'repeats' items. Pslide(list, repeats, len, step, start, wrapAtEnd): Play overlapping segments from the list. Pwalk(list, stepPattern, directionPattern, startPos): Random walk over the list. Place(list, repeats, offse ...
-
... r2 = 230 + (50 * (a + 1.rand2).fold(0,3)); var a2 = 2pi / 24 * (b + (3.rand2)).wrap(0,23) + phase; Pen .width = 0.2 + 1.0.linrand; Pen .beginPath; Pen .moveTo( Polar (r1, a1).asPoint + Point (400,400)); Pen .lineTo( Polar (r2, a2).asPoint ...