-
... .ar(u, pan)) }) ); // create a task to repeatedly send grains ( t = Task .new({ loop({ // starts a synth with the current synthdef at index 0 ~out.spawn([ \pmf , [1, 20, 300].choose, \pan , [0, -1, 1].choose]); [0.1, 0.01, 0.25].choose.wait ...
-
... .0 + 6.0.rand, levelScale: 0.3 ); Out .ar( 0, out ); }).send(s); 0.02.wait; }); loop({ Synth ( "Help-SPE4-EnvirDef-" ++ n.rand.asString ); (0.5 + 2.0.rand).wait; }); }).play; ) Event The class Event is a subclass of Environment. Events are ...
-
... about the 'index' and 'value' stuff; it's not important just now) This waveform loops, creating the output signal. 'ar' means make the instance audio rate . SuperCollider calculates audio in groups of samples, called blocks . Audio rate mea ...
-
... t. This routine can then be used exactly like to any other routine -- the while loop used to read out the stream values is exactly the same for both, even though they are written differently. Thus the 'Over the Rainbow' example could be rew ...
-
... nmeyer systems (see also Prewrite) // special care is taken so that no infinite loops can happen. // just like with non recursive phrasing, new values override old values, // any values that are not provided within the pattern definition // ...
-
... conds see String :asSecs for complement ( var start = Main .elapsedTime; fork { loop { ( Main .elapsedTime - start).asTimeString.postln; 0.05.wait } }; ) equalWithPrecision(that, precision) return true if receiver is closer to that than pre ...
-
... q , rrand(1000, 15000), \pan , 1.0.rand2, \bus , b, \lfobus , l]); 0.07.wait; }.loop; }).play( SystemClock ); ) ~dist.run( false ); // proves that the distortion effect is doing something ~dist.run( true ); // to clean up: ( r.stop; [~synth ...
-
... he server, and waits for a response before it sets the StaticText. 0.01.wait; }.loop }.play }); CmdPeriod .doOnce({w.close}); w.onClose={r.stop; q.free; b.free }; //clean up if the window closes ) Here an OSCreponder changes a gui. See OSCr ...
-
... 0], 2) ), \dur , PstepNadd ( Pseq ([1, 0, 0, 1], 2), Pshuf ([1, 1, 2, 1], 2) ).loop * (1/8), \legato , Pn ( Pshuf ([0.2, 0.2, 0.2, 0.5, 0.5, 1.6, 1.4], 4), inf ), \scale , #[0, 1, 3, 4, 5, 7, 8] ).play;
-
... e some text ( var time = Main .elapsedTime; a = List .new; r = Routine { |char| loop { a = a.add([char, Main .elapsedTime - time]); char = 0.yield; } }; Document .new( "type some text" ) .bounds_( Rect (100, SCWindow .screenBounds.height-25 ...