-
... ; // something safe to type on { SinOsc .ar(800, 0, KeyState .kr(38, 0, 0.1)) }.play; )
-
... \instrument , \help_sinegrain , \degree , Pseries (0, 1, inf ), \octave , 6 ) ).play; )
-
... on each Server and represents the root of that server's node tree. It is always playing, and always running, cannot be freed, or moved anywhere. Cacheing is used so that there is always one RootNode per Server. s = Server .local; a = RootNo ...
-
... }).send(s); ) // send a first synth: ~s1 = Synth ( \x ); // [1] // now you can play around with these lines, as well as with the synth def above ~s1 = Synth .replace(~s1, \x , [ \freq , 3000]); ~s1.set( \freq , 4000); // add a bus: ~b1 = B ...
-
... e logical time (clock.beats) and physical time (clock.elapsedBeats) just before playing a grain. s.boot; SynthDef ( \sinGrain , { |out = 0, freq = 440, amp = 0.5, dur = 1| Out .ar(out, SinOsc .ar(freq, 0, amp) * EnvGen .kr( Env .sine(1), ti ...
-
... control a gui with a Routine or Task, then you must either use the AppClock to play them, or use the defer mechanism, which schedules a Function in the AppClock : ( w= Window .new.front; Routine { 20.do{ w.bounds= Rect (200.rand, 200+200.r ...
-
... Hz sine oscillator Out .ar(0, osc); // send output to audio bus zero. }).add; ) Play a 900 Hz sine wave. s.sendMsg( "/s_new" , "sine" , x = s.nextNodeID, 1, 1, "freq", 900); s.sendMsg( "/n_free" , x); Play a 1000 Hz sine wave. s.sendMsg( "/ ...
-
... 1.wav" ); } ) ( x = { var fftsize = 1024; var in, chain, in2, chain2, out; in = PlayBuf .ar(1, c, BufRateScale .kr(c), loop: 1); chain = FFT ( LocalBuf (fftsize), in); // in2 = PlayBuf .ar(1, e, BufRateScale .kr(e), loop: 1); // JMcC babbli ...
-
... nk .ar(`[[200, 671, 1153, 1723], nil , [1, 1, 1, 1]], Impulse .ar(2, 0, 0.1)) }.play; { Klank .ar(`[[200, 671, 1153, 1723], nil , [1, 1, 1, 1]], Dust .ar(8, 0.1)) }.play; { Klank .ar(`[[200, 671, 1153, 1723], nil , [1, 1, 1, 1]], PinkNoise ...
-
... \amp.asSpec is used. See also softSet , softPut . Ndef ( \test , { |freq=200| Splay.ar( SinOsc .ar(freq * Array.rand(12, 0.95, 1.05))) }); Ndef ( \test ).play(vol: 0.1); // example of softSet, softSet which knows lastVal, // softVol_ and s ...