-
... = 0.05| var env; env = EnvGen.kr(Env.perc(0.01, sustain, 0.3), doneAction: Done.freeSelf); Out.ar(out, SinOsc.ar(freq, 0, env)) }).add; ) Tdef(\x).play; ( Tdef(\x, { loop({ s.sendMsg("/s_new", "pdef_grainlet", -1, 0, 0, \freq, rrand(600, 64 ...
-
... r(freq, mul: amp); snd = snd * EnvGen.kr( Env.perc(0.01, 0.2), doneAction: Done.freeSelf ); Out.ar(0, snd!2); }).add; freqs = Scale.at(scale).ratios; freqs = freqs ++ [2]; freqs = freqs * freq; pianoRoll .entries_(freqs) .beat_(0) .highligh ...
-
... if a new function is assigned it does // not get freed. ( ~out = { arg t_trig ; FreeSelf .kr( t_trig ); PinkNoise .ar([1,1]*0.3); }; ) ~out.group.set( \t_trig , 1); f) own output responsibility // the arg name 'out' can be used to output th ...
-
... ); eg = EnvGen.kr(Env.linen(attack, time, decay), sig.abs > 0, doneAction: Done.freeSelf); Out.ar(out, (sig * eg) ! 2) }).add; // note add! Without this, arguments won't work ) ( TempoClock.default.tempo = 1; p = Pbind( \instrument, \stretc ...
-
... al) + mod, 0, mul ); Out.ar( bus, car * EnvGen.kr(Env.sine(1), doneAction: Done.freeSelf, timeScale: ts) ) }).add; ) ( // DEFINE A ROUTINE r = Routine({ 12.do({ Synth( "fm2", [ \bus, 2.rand, \freq, 400.0.rrand(1200), \carPartial, 0.5.rrand( ...
-
... amp = 1, pan| var env = EnvGen.kr(Env.perc(0.01, sustain), 1, doneAction: Done.freeSelf); Out.ar(out, Pan2.ar(SinOsc.ar(freq, 0.5pi, amp * env), pan)); }).add; ) // event pattern as an argument Pdef(\x, Pbind(\instrument, \Pdefhelp, \note, ...
-
... muff, velcurve, stereo, tune, random, stret, sus); FreeSelf(1-gate); Out.ar(out, son ); }).add; ) ( // 1 2 3 4 5 6 7 8 var tNotes = [ 59,71, 7 ...
-
... , 0], [0.01, 0.5, 0.02, 0.5]); SinOsc.ar(470) * EnvGen.kr(env, doneAction: Done.freeSelf) }.play ) // an envelope to control a parameter in a pattern ( Pbind( \note, Env([0, 12, 6, 13, 0], [1, 5, 2, 10]), \dur, 0.1 ).play ) ⧉ ✔ Class Method ...
-
... n.kr( Env( [0,1,1,0], times: [ 0.1, rythm_length / 4, 0.1 ] ), doneAction: Done.freeSelf ); snd = SinOsc.ar( freq, 0, 0.5 ) + SinOsc.ar( freq * 2, 0, 0.4 ) + SinOsc.ar( freq * 4, 0, 0.3 ) + SinOsc.ar( freq * 8, 0, 0.35 * EnvGen ...
-
... sig, delay; env = EnvGen.kr(Env.linen(atk, decaytime, rel), doneAction: Done.freeSelf); sig = PinkNoise.ar(amp); //Can use white noise here, but Pink is more realistic delay = freq.reciprocal; sig = Pluck.ar(sig, trig, maxdelaytime ...