-
... rolable via a GUI. ( // some basic drum synths SynthDef(\kick, {|out| var sig = SinOsc.ar(XLine.ar(start: 600, end: 50, dur: 0.1)); var env = EnvGen.kr(Env.perc(releaseTime: 0.25, curve: 5.0), doneAction: Done.freeSelf); Out.ar(out, Pan2.ar ...
-
... in a filter, 'in' is the signal on the bus in.asArray[0] // force mono inputs * SinOsc.ar(LFNoise0.kr([randrate, randrate]).exprange(300, 3000)).sum }, \comb, \filterIn -> { |in, decay = 3| CombL.ar(in, 0.02, [0.03, 0.042], decay) }, \ampFi ...
-
... var roundButton; SynthDef(\GMhelp, { |out = 0, amp = 0.1, freq = 440| var snd = SinOsc.ar(freq, mul: amp); snd = snd * EnvGen.kr( Env.perc, doneAction: Done.freeSelf ); Out.ar(0, snd!2); }).add; // Instanciate the View, and modify it's look ...
-
... .do{ |i| { var freq = pitches[i].midicps; var env = Env.perc.ar(Done.freeSelf); SinOsc.ar(freq) * 0.1 * env }.play; 0.2.wait } } ) ⧉ ✔ . clipAt ( i ) Similar to -at , but guarantees that any value for index is valid by clipping values outsi ...
-
... 2, la3, la4], [ta0, ta1, ta2, ta3], crva), doneAction: Done.freeSelf); signal = SinOsc.ar([freq, freq*2] * fenv) * aenv * vol; Out.ar(0, signal.dup); }).add; ) ( Routine({ var par, indices; indices = (2..21); loop({ par = (indices +++ ( v.e ...
-
... sonify centroid = KMeansRT.getCentroid(~kbuf, classif, ~ndims).at(0); resynth = SinOsc.ar(centroid, 0, 0.1); [sig, resynth] }.play ) x.free ⧉ ✔ This example clusters onsets: s.boot; k = 5; ~ndims = 1; // Specify a stereo music recording you ...
-
... drum synths to the server and setup a clock. ( SynthDef(\kick, {|out| var sig = SinOsc.ar(XLine.ar(start: 600, end: 50, dur: 0.1)); var env = EnvGen.kr(Env.perc(releaseTime: 0.25, curve: 5.0), doneAction: Done.freeSelf); Out.ar(out, Pan2.ar ...
-
... n_grain, { |out = 0, freq = 400, att = 0.005, rel = 0.1, amp = 0.1| var sig = { SinOsc.ar(freq, Rand(0, 2pi)) } ! 2; sig = sig * EnvGen.ar(Env.perc(att, rel, amp), doneAction: 2); OffsetOut.ar(out, sig); }).add; SynthDef(\saw_grain, { |out ...
-
... feedbackButton; SynthDef(\GMhelp, { |out = 0, amp = 0.1, freq = 440| var snd = SinOsc.ar(freq, mul: amp); snd = snd * EnvGen.kr( Env.perc, doneAction: Done.freeSelf ); Out.ar(0, snd!2); }).add; // Instanciate the View, and modify it's look ...
-
... el= 0.1| var e= EnvGen.ar(Env.perc(0, rel, amp, -10), doneAction:2); var z= Mix(SinOsc.ar(#[150, 160, 170], 0, e*0.4)); Out.ar(0, Pan2.ar(z, 0)); }).add; }; ) c= TempoClock(114/60); Pdef(\bd).play(c, quant:4) Pdef(\bz).play(c, quant:4) Pdef ...