-
... , b]); b.set(1.0); b.value = 1.0; b.value = 0.2; b.value = 0.1; compare with In example.
-
... ween 0 and 1 determines probability of either possibilities trig input signal //examples ( a = SynthDef ( "help-TCoin" , { arg out=0, prob=0.5; var trig; trig = CoinGate .kr(prob, Impulse .kr(10)); Out .ar(out, SinOsc .ar( TRand .kr(300.0, ...
-
... r the queue is empty. notEmpty Return a Boolean whether the queue is not empty. Example: ( var p; p = PriorityQueue .new; p.put(0.1, \a ); p.put(2.0, \b ); p.put(0.5, \c ); p.put(0.2, \d ); p.put(1.0, \e ); while ({ p.notEmpty },{ [p.topPri ...
-
... addAction) returns: a Synth Note that you need an out ugen to hear the result. Examples of how to write to the busses in the helpfiles: Out / ReplaceOut / XOut / OffsetOut Nevertheless, synths can also run without any writing activity: (se ...
-
... it was stopped. Task is a variation that can be paused and resumed at will. For example, let's iterate over a C major scale. Note that all of SuperCollider's control structures are valid inside a Routine or Task. Note also that we can use ' ...
-
... later. Per default, a LazyEnvir returns instances of Maybe . See also Fdef . // examples l = LazyEnvir .push; // default objects are created on access ~a; ~a.value; // defaults to 1 // operations on placeholders ( ~c = ~a + ~b; ~c.value; ) ...
-
... or any other ugen structurally related: Pwhite , WhiteNoise see also: Demand // example // Dwhite ( { var a, freq, trig; a = Dwhite (0, 15, inf ); trig = Impulse .kr( MouseX .kr(1, 40, 1)); freq = Demand .kr(trig, 0, a) * 30 + 340; SinOsc . ...
-
... [ otherElements ], elem2 -> [ otherElements ], elem2 -> [ otherElements ] ] the examples use the shortcut for Event. ( a = Prewrite (0, // start with 0 ( 0: #[2,0], 1: #[0,0,1], 2: #[1,0,1] ), 4); x = a.asStream; 30.do({ x.next.postln }); ) ...
-
... rgMin, argMax) set the volume range gui(window, bounds) create a volume gui. // examples v = s.volume; v.min; v.max; v.volume = rrand(-50, 5); v.setVolumeRange(-90, 8); v.mute; v.unmute; // separate window v.gui;
-
... e up" to the parent view if a view does not define one itself. In the following example, a and b do not have keyDown actions themselves, so the key event is passed to c, the parent, which defines the key down action. d's parent is the SCTop ...