-
... env = Decay2 .kr(gate, 0.05, 8, 0.0003); synth = RLPF .ar( LFPulse .ar(freq, 0, SinOsc .kr(0.12, [0, 0.5pi], 0.48, 0.5)), freq * SinOsc .kr(0.21, 0, 18, 20), 0.07 ); #a, b = synth*env; DetectSilence .ar(a, 0.1, doneAction: 2); Out .ar(out, ...
-
... n to this document: //example: easy button: //when you click in front of a 17 a SinOsc will start up; s.waitForBoot({ Document .current.mouseUpAction_({ arg doc; var char; char = doc.rangeText(doc.selectionStart, 2); if(char == "17" ,{ { En ...
-
... run across them. // look at the outputs of Pan2: Pan2 .ar( PinkNoise .ar(0.1), FSinOsc .kr(3)).dump; play({ Pan2 .ar( PinkNoise .ar(0.1), FSinOsc .kr(1)); }); When an Array is given as an input to a unit generator it causes an array of mult ...
-
... boot; ( var orc; orc = Environment .make { ~a = { arg freq, amp, pan; Pan2 .ar( SinOsc .ar(freq), pan, amp); }; ~b = { arg amp, pan, freq; Pan2 .ar( RLPF .ar( Saw .ar(freq), freq * 6, 0.1), pan, amp); }; ~c = { arg pan, freq, amp; Pan2 .ar( ...
-
... EnvGen .kr( Env ([1, decay1L, 0], [decay1, decay2], -4), doneAction: 2), sig = SinOsc .ar(fcurve, 0.5pi, preamp).distort * env * amp; Out .ar(out, sig ! 2) }).add; SynthDef ( \kraftySnr , { |amp = 1, freq = 2000, rq = 3, decay = 0.3, pan, ...
-
... valuate an audio function like this: // assuming the server is already booted { SinOsc .ar}.play ; In this case many server operations are hidden. To understand the passages inolved in the evalutation of this code see Functions and Other Fu ...
-
... ess the proxy space and the proxies in it indirectly: p[ \x ].play; p[ \x ] = { SinOsc .ar(450, 0, 0.1) }; // or: when the proxyspace is pushed, you can use a normal environment indirectly: p.push; d = (); d[ \buffer1 ] = Buffer .alloc(s, 1 ...
-
... the environment. ( var a, b, c, n; n = 40; a = { arg freq, amp, pan; Pan2 .ar( SinOsc .ar(freq), pan, amp); }; b = { arg amp, pan, freq; Pan2 .ar( RLPF .ar( Saw .ar(freq), freq * 6, 0.1), pan, amp); }; c = { arg pan, freq, amp; Pan2 .ar( R ...
-
... s to an array of UGen s (see those helpfiles for more details). s.boot; ( x = { SinOsc .ar([0.1, 0.2], 0).poll * 0.1 }.play; ) x.trace; // By tracing the Synth you can see the two Poll units we created x.free dpoll(trig, label, trigid) appl ...
-
... cal; SynthDef ( \help_SPE3_SimpleSine , { arg freq, sustain=1.0; var osc; osc = SinOsc .ar( [freq,freq+0.05.rand] ) * EnvGen .ar( Env .perc, doneAction: 2, levelScale: 0.3, timeScale: sustain ); Out .ar(0,osc); }).add; ) /////////////////// ...