-
... eft hand side. A single assignment is in the form: <variable> = <an expression> examples: x = [1, 2, 3, 4].rotate(1); c = a + b; Multiple Assignment A multiple assignment statement assigns the elements of a Collection which is the result of ...
-
... dates a window displaying the state // of some objects every now and then. ( // example is mac-only d = (a: 12, b: 24); d.win = SCWindow ( "dict" , Rect (0,0,200,60)).front; d.views = [ \a , \b ].collect { |name, i| SCStaticText (d.win, Rec ...
-
... be a number or any other ugen structurally related: Pseries see also: Demand // example ( { var a, freq, trig; a = Dseries (0, 1, 15); trig = Impulse .kr( MouseX .kr(1, 40, 1)); freq = Demand .kr(trig, 0, a) * 30 + 340; SinOsc .ar(freq) * 0 ...
-
... ly directs its pattern changes to that node and does not create an extra synth. Examples p = Pmono ( \default , \dur , 0.2, \freq , Pwhite (1,8) * 100 ).play p.stop // multi channel expansion is supported: p = Pmono ( \default , \dur , 0.2, ...
-
... Gaussian-like distribution. length number of values produced (default: inf) // example ( var a, c, w; a = Pbeta (0.0, 1.0, 0.1, 0.1, inf ); c = a.asStream.nextN(500); w = Window .new( "Pbetarand" , Rect (10, 10, 540, 800)); // plot the val ...
-
... ame message in different ways, each appropriate to the class of the object. For example all objects understand the 'value' message. Many objects simply return themselves in response to 'value', but other objects such as functions and stream ...
-
... hich of the inputs to return structurally related: Pswitch1 see also: Demand // example ( { var a, freq, trig; a = Dswitch1 ([1, 3, MouseY .kr(1, 15), 2, Dwhite (0, 3, 2)], MouseX .kr(0, 4)); trig = Impulse .kr( 3 ); freq = Demand .kr(trig, ...
-
... structurally related: Pgeom The arguments can be a number or any other ugen // example ( { var a, freq, trig; a = Dgeom (1, 1.2, 15); trig = Impulse .kr( MouseX .kr(1, 40, 1)); freq = Demand .kr(trig, 0, a) * 30 + 340; SinOsc .ar(freq) * 0 ...
-
... n whenever key is true. Pgate must be used within an Event pattern See also: Pn Examples // Pn advances Pgate each time its subpattern is repeated ( Pbind ( \degree , Pn ( Pseq ((0..7)), inf , \step ), \mtranspose , Pgate ( Pwhite (0,5), in ...
-
... Gen *kr(trig, nodeID) trig when triggered, frees node nodeID node to be freed //example s.boot; SynthDef ( "a" , { Out .ar(0, SinOsc .ar(800, 0, 0.2)) }).send(s); SynthDef ( "b" , { arg t_t=0; Out .ar(1, PinkNoise .ar(0.3)); Free .kr(t_t, 1 ...