-
... w someone make a def SynthDef(\foo, {|freq = 440, dur = 1, amp = 0.1| Out.ar(0, SinOsc.ar(freq, 0, amp) * Env.sine(dur).kr(2));}).add; // someone else try to look it up SynthDescLib.at(\foo); Synth(\foo);
-
... v; 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: Done.freeSelf); Out. ...
-
... 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 ...
-
... (ampEnv.asArray); amp = EnvGen.kr(ampCtl, doneAction: 2); modulator = SinOsc.ar(freq: modFreq, mul: modIndex * modFreq); carrier = SinOsc.ar(freq: carrFreq + modulator, mul: amp); Out.ar(0, [carrier, carrier]); }).a ...
-
... wEnv = EnvGen.ar(Env.perc(watk, wrel), snareSelecta) * wVol; kick = ((kwn + SinOsc.ar(kpenv + kFreq)) * kickEnv).clip2; // GABBBAAAAAA snareTone1 = Ringz.ar(Trig.ar(snareSelecta, SampleDur.ir), snareToneFreq*spenv, s1Dec); snareTone ...
-
... ,1200,\exp]); ~amp = KrNumberEditor(0.1,[0.01,0.4,\exp]); Patch({ arg freq,amp; SinOsc.ar(freq) * amp },[ ~freq, ~amp ]) }) .onPlay_({ "playing".postln; }) .onStop_({ // also on command-. "stopping".postln; }) .onFree_({ "freeing".postln; } ...
-
... kr(trig) > 3)); var freq = Demand.kr(trig, 0, Dseq([72, 71, 70, 69].midicps)) + SinOsc.kr(6).range(-10, 10); var sound = MoogFF.ar(Saw.ar(freq), EnvGen.kr(Env.sine(dur), trig, 4000, 800), 0.2); sound = sound * EnvGen.kr(Env.asr(0, 1, 4), ga ...
-
... evaluate 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 involved in the evaluation of this code see 04. Functions and O ...
-
... (ampEnv.asArray); amp = EnvGen.kr(ampCtl, doneAction: 2); modulator = SinOsc.ar(freq: modFreq, mul: modIndex * modFreq); carrier = SinOsc.ar(freq: carrFreq + modulator, mul: amp); Out.ar(0, [carrier, carrier]); }).a ...
-
... 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 ...