-
... values. see also: LFDNoise0 , LFNoise1 , LFNoise2 { LFNoise0 .ar(1000, 0.25) }.play; // modulate frequency { LFNoise0 .ar( XLine .kr(1000, 10000, 10), 0.25) }.play; // as frequency modulator ( { SinOsc .ar( LFNoise0 .ar(4, 400, 450), 0, 0. ...
-
... 4, 1, Pwhite (0, 6, 3), 100, 39], inf ).trace(prefix: "value: " ), \dur , 0.2 ).play ); // post only a slot of the events ( Pbind ( \degree , Pseq ([1, 4, 1, Pwhite (0, 6, 3), 100, 39], inf ), \dur , 0.2 ).trace( \degree ).play ); // severa ...
-
... el Patterns Ppar The Ppar pattern allows you to merge multiple event streams to play in parallel. Ppar is a ListPattern and so like most ListPatterns it takes two arguments, a list of event patterns to play in parallel and a repeats count. ...
-
... values. see also: LFDNoise1 , LFNoise0 , LFNoise2 { LFNoise1 .ar(1000, 0.25) }.play; // modulate frequency { LFNoise1 .ar( XLine .kr(1000, 10000, 10), 0.25) }.play; // as frequency modulator ( { SinOsc .ar( LFNoise1 .ar(4, 400, 450), 0, 0. ...
-
... ( Line .kr(100, 800, 0.1)) }.plot(0.1); // 50 Hz wave { LFPulse .ar(50) * 0.1 }.play; // modulating frequency: { LFPulse .ar( XLine .kr(1, 200, 10), 0, 0.2, 0.1) }.play; // amplitude modulation: { LFPulse .kr( XLine .kr(1, 200, 10), 0, 0.2) ...
-
... ed(0, r); r.stop; Now let's replace the posting statements with instructions to play a synth. Preparation: ( SynthDef ( \singrain , { |freq = 440, amp = 0.2, sustain = 1| var sig; sig = SinOsc .ar(freq, 0, amp) * EnvGen .kr( Env .perc(0.01, ...
-
... ars, or arrays of unit generators and scalars. SynthDefs and Synths In order to play a unit generator one needs to compile it in a SynthDef and play it on the server in a Synth . A synth node is a container for one or more unit generators t ...
-
... eam in audio from a file add DiskIn.ar(numChannels, bufnum, loop ) Continuously play a longer soundfile from disk. This requires a buffer to be preloaded with one buffer size of sound. If loop is set to 1, the soundfile will loop. See also: ...
-
... b,4,5b], inf ), \instrument , \help_sinegrain ) ]); ) Pseq ([f, f, a, a], inf ).play; // play a sequence // Psync allows to limit the duration of a stream relative to a beat grid b = Psync (a, 1, 1); // create a sequence of exactly 1 beat e ...
-
... in, 1); sound = SinOsc .ar(input * 1300 + 300, 0, 0.4); Out .ar(out, sound); }).play; ) this shows how a node can read audio from a bus that is being written to by a synth following it: ( SynthDef ( \help_InFeedback , { arg out=0, in=0; Out ...