-
... -View-Controller where one object (the controller) is a dependant of the model. Every time the model changes it notifies all of its dependants. In this case the model has a dictionary of dependants and iterates through those. Another common ...
-
random generator seed Every Thread in sclang has a (pseudo-) random number generator that is responsible for all randomization within this thread. Each random number generator has its own seed (starting point) from which the series of value ...
-
... rated once, when creating the Pattern object // so the same random seed is used every time whenever this pattern object plays \degree , Pseed (0x7FFFFFFF.rand, Pseries ({ rrand(-7, 0) }, Pwhite (1, 3, inf ), { rrand(4, 10) })), \dur , 0.25 ...
-
... ions or objects in order. See also [ StartUp ] for functions that are evaluated every time the ClassLibrary is recompiled. Examples SomeStartClass { *initClass { ApplicationStart .add { // something to do when the app has been launched... } ...
-
... classes Why patterns? Patterns describe calculations without explicitly stating every step. They are a higher-level representation of a computational task. While patterns are not ideally suited for every type of calculation, when they are a ...
-
... me result. { Mix .arFill(3, { arg i; Saw .ar(500 + (i * 100), 0.05) }) }.scope; Every time the function is evaluated, the argument i is incremented. So i equals 0 the first time the function is evaluated, i equals 1 the second time, i equal ...
-
... am ends. The cross adverb allows you to pair each item in the first stream with every item in the second stream. p = ( Pseq ([10, 20]) +.x Pseq ([1, 2, 3])).asStream; Array.fill(7, { p.next }); the result is: [ 11, 12, 13, 21, 22, 23, nil ] ...
-
... here is a critical difference. Doing math on an array performs the operation on every array item all at once. By contrast, patterns are "lazy" -- they evaluate one value at the time, only when asked, and they only do as much as they need to ...
-
... sc .kr(440, 0, 1); By default, control rate ugens generate one sample value for every sixty-four sample values made by an audio rate ugen. Control rate ugens thus use fewer resources and are less computationally expensive than their audio r ...
-
... dur , 0.4, \octave , 3, \amp , 0.03, \dorkarg , Pseq ([1,0,1], inf ) // silence every second note - doesn't work ).play; ) 'dorkarg' is ignored because the SynthDef was not properly .add'd and consequently, the event prototype doesn't know ...