-
... (freq, 0, env)) }).add; ) ( var a; a = Pbrown (0.0, 1.0, 0.1, inf ).asStream; { loop { Synth ( \help_sinegrain , [ \freq , a.next * 600 + 300]); 0.02.wait; } }.fork; ) // parallel browninan motions ( var a, x, f; a = Pbrown (0.0, 1.0, 0.1, ...
-
... ([1, 2, 3], inf )); x = Pseq ([0, 0, Pdefn ( \x )], inf ).asStream; t = Task ({ loop({ x.next.postln; 0.3.wait }) }).play; Pdefn ( \x , Pseq ([55, 66, 77], inf )); Pdefn ( \x , Pseq ([55, 66, 77],1)); t.stop; // Pdefn can be accessed in mul ...
-
... , 8, 0, 8], inf ), Pseries (1, 1, 32) ], inf ) + 67; x = c.asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , x.next.midicps, \dur , 0.2]); 0.17.wait; }) }).play; ) // a more complicated example: ( c = Ppatlace ([ Pxrand ([ Pse ...
-
... each call in the call stack to help locate the error. Routine ({ var a; a = 5; loop { var b; b = 20.rand; b.postln.ecky_ecky_phtang; // "NI!!!!" a.wait; } }).play; ERROR: Message 'ecky_ecky_phtang' not understood. RECEIVER: Integer 6 ARGS: ...
-
... 800, 0.125); recbuf = RecordBuf .ar(formant, bufnum, recLevel: Line .kr(1, 1), loop: 0); // The RecordBuf doesn't loop, so you can check it for 'done' status FreeSelfWhenDone .kr(recbuf); }).play(s,[ \out , 0, \bufnum , b]); ) // play it b ...
-
... ) }).send(s); ) ( r = Routine .new({ { Synth .new( "help-EnvGen" ); 1.yield; }.loop }); // loop every one second SystemClock .play(r); ) Note that the above example uses a precompiled SynthDef . This results in a lower CPU spike when Synth ...
-
... var in, in2, chain, chainB, chainC; in = PlayBuf .ar(1, d, BufRateScale .kr(d), loop: 1) * 2; in2 = WhiteNoise .ar; chain = FFT ( LocalBuf (2048), in); chainB = FFT ( LocalBuf (2048), in2); chainC = PV_Copy (chain, LocalBuf (2048)); chainB ...
-
... ; ) ( { var in, chain, chainB, pan; in = PlayBuf .ar(1, d, BufRateScale .kr(d), loop: 1) * 2; chain = FFT (b, in); chainB = PV_Copy (chain, c); pan = MouseX .kr(0.001, 1.001, 'exponential' ) - 0.001; chain = PV_BrickWall (chain, pan); chain ...
-
... sig, chain, unp; sig = SinOsc .ar; sig = PlayBuf .ar(1, c, BufRateScale .kr(c), loop: 1); chain = FFT (b, sig); // Using the frombin & tobin args makes it much more efficient, limiting analysis to the bins of interest unp = UnpackFFT (chain ...
-
... var in, chain; in = PlayBuf .ar(1, soundBufnum, BufRateScale .kr(soundBufnum), loop: 1); chain = FFT(LocalBuf(2048), in); chain = PV_MagSquared (chain); Out .ar(out, 0.003 * IFFT (chain).dup); }).play(s,[ \out , 0, \soundBufnum , c]); ) c. ...