-
... ist of recent items (or keys), so one can avoid close repetitions of items with random choices. First code examples: // make a Mem with 50 entries: ~mem = Mem(0); ~degrees = (0..7); // occasional direct repetitions... Pdef('mem', Pbind( \de ...
-
... rray(100, 100, a.flat); // Accessing a[15][22] b[15, 22] // Speed comparison 1: random access bench { 100.do(a[100.rand][100.rand]) } bench { 100.do(b[100.rand, 100.rand]) } // Speed comparison 2: iteration bench { 100.do(a.do { |row| row.d ...
-
... ) .originalSpec_( this ) .operations_( [ \invert, \reverse, \sort, \scramble, \random, \line, 'use first for all', \rotate, 'move item', \resample, \curve, \smooth, \flat, \sine, \square, \triangle, 'code...', \post ] ) } massEditValue { | ...
-
... // set is recognised if any element matches. // as a rule value it represents a random choice. + Set { recognise { arg list, index = 0; ^this.any(_.recognise(list, index)) } transform { arg list, index=0; ^this.choose.transform(list, index) ...
-
... ynth arguments. Uses: Map note number or velocity onto Voicer synth parameters. Randomize, or otherwise algorithmically generate, parameter values per note. For example, each note could play at a random pan position. // assuming 'k' is a Vo ...
-
... eepDoAssoc { |assoc| size = max(size, assoc.keySize) }; ^size } } // set is for random choice. + Set { deepFindRule { arg list, index=0; var randomElements = this.select { |assoc| assoc.recognise(list, index) }; "randomElements: %\n".postvg ...
-
... te list of available tunings, execute Tuning .directory *choose(size) Creates a random tuning from the library, constrained by size (which defaults to 12). Scale .major( Tuning .choose).tuning.name; *new(tuning, octaveRatio, name) Creates a ...
-
... YPERLINK "SC://TempoClock" TempoClock. If not set explicitly, return one with a randomly generated name. \ \ *makeName \ \ returns a random name, with the last byte of the hostname attached to it\ \ \ \ newAddrAction_(func) - an optional ac ...
-
... _(1.2).wchange_(0.9).wdistance_(5).wradius_(10); obj.state= ( //init state with random values \fmamount: 0, \fmsend: 1, \rmamount: 0, \rmsend: 1, \freq: 128.rand.midicps, \atk: 0.1.rand, \dec: 0.4.rand, \pitchatk: 0.1.rand, \pitchdec: 0.3.r ...
-
... _(1.2).wchange_(0.9).wdistance_(5).wradius_(10); obj.state= ( //init state with random values \fmamount: 0, \fmsend: 1, \rmamount: 0, \rmsend: 1, \freq: 128.rand.midicps, \atk: 0.1.rand, \dec: 0.4.rand, \pitchatk: 0.1.rand, \pitchdec: 0.3.r ...