-
( Alga.boot({ a = AlgaPattern( { SinOsc.ar(\freq.kr(440)) * EnvGen.ar(Env.perc(releaseTime:0.5), doneAction:2) } ).play; }) ) a.replace({Saw.ar(\freq.kr(440)) * 0.7 * EnvGen.ar(Env.perc(releaseTime:0.5), doneAction:2)}, sched:1) a.from(Alga ...
-
... ogether. Here, each _ becomes the result of the previous expression. With UGens SinOsc.ar(440) |> LPF.ar(_, \lpf.kr(15000)) |> HPF.ar(_, \hpf.kr(20)) |> Out.ar(\out.kr(0), _); ⧉ ✔ A sine wave that is filtered by a low pass, then high pass, ...
-
... cumented instance methods . signalRange Examples { Trig1.ar(Dust.ar(1), 0.2) * FSinOsc.ar(800, 0.5) }.play To create a fixed duration gate ( SynthDef("trig1", { |dur = 0.125| var gate; gate = Trig1.kr(1.0, dur); OffsetOut.ar(0, SinOsc.ar(80 ...
-
... ooking for freq = 220; // or try MouseY.kr(110, 440, 1); amp = MouseX.kr; sig = SinOsc.ar(freq, 0, amp); # real, imag = Goertzel.kr(sig, bufsize, 220); // Calc the magnitude. We also normalise it against buffer size here. mag = (real.square ...
-
... Symbol as 'dur', the pattern can be advanced manually a = AlgaPattern(( def: { SinOsc.ar(\freq.kr(440)) * EnvPerc.ar(release: 0.5) }, dur: \manual, freq: Pseq([440, 880], inf) )).play(chans: 2); }) ) //Schedule at next beat a.advance(1); / ...
-
... adius in AU SynthDef(\planet,{ |out=0, freq=200, modAmp=1, modFreq=1| var sig = SinOsc.ar(freq+(modAmp*freq/2*SinOsc.kr(modFreq))); Out.ar(out,sig*0.2); }).add ) ( y=SolarSystem.new; y.planets.do{|p,i| var freq, modAmp,modFreq; var o = SSOb ...
-
... bodyAmp = EnvGen.ar(Env.linen(0.005, 0.1, 0.3), doneAction: 2); body = SinOsc.ar(bodyFreq) * bodyAmp; // pop sweeps over the midrange popFreq = XLine.kr(750, 261, 0.02); popAmp = EnvGen.ar(Env.linen(0.001, 0.02, 0.00 ...
-
... ar(d, x, LFDNoise1.ar(l, LFCub.ar(k, l, s, v ), LFClipNoise.ar(f, m, p ) ), SinOsc.ar(g, CML0.ar(g, l, i, c, i, f ), LFPulse.ar(l, f, c, b, s ), LFNoise1.ar(l, x, v ) ), LPF.ar( SyncSaw.ar(m, q, u, r ), BrownNoise.ar(t, h ), f, n ) ...
-
... ze = 2048; var halfSize = (size / 2).asInteger; // amplitude: select one! amp = SinOsc.kr(0.5).range(0.05, 0.25); // amp = 0.25; // constant amplitude // Inputs: select one in = SinOsc.ar([440, 330]); // in = PinkNoise.ar(); // rotation mod ...
-
... force, k, d); freq = outforce * 400 + 500; // modulate frequency with the force SinOsc .ar(freq, 0, 0.2) }.play; ) // several springs in series. // trigger gate is mouse button // spring constant is mouse x // mouse y controls damping ( { v ...