-
+ Env { put { |time = 0, level = 1, precision = 0.001| // put a level at an absolute time var absTimes, index; absTimes = [0] ++ this.times.integrate; index = absTimes.detectIndex({ |item| time.equalWithPrecision( item, precision ) }); if( ...
-
... thDef(\imp, { |speed = 1, begin=0, end=1, pan, accelerate, amp = 1, offset| var env, sound, dur, rate, phase; dur = (end - begin) / speed; env = EnvGen.ar(Env.linen(0, 0.2, 0.8, amp * 0.1, -4), timeScale:dur, doneAction:2); phase = Line.ar( ...
-
... of key streams can be done in object prototyping style with a dedicated PLbindefEnvironment, which also holds player methods. This Environment is itself assigned to the PLbindef's name in an Environment of choice, by default the current Env ...
-
// test //-- INIT SynthDef(\thatblip, { OffsetOut.ar(0, Env.perc(0.001, 0.1, \amp.kr(0.1)).ar(doneAction: 2) * Blip.ar(\freq.kr, 20) ) }).add; s.sync; //-- PLAY ( Tdef(\xthat, { loop { (instrument: \thatblip, note: rrand(-3, 10), octave: [5 ...
-
... mescale=1, curve=0, loopnode=0, formfact=2, widfact=0.5, spread=1, amp=0.1| var env = EnvGen .kr ( Env ( { 1.0.rand2 }!11, {1.0.rand}!10 * timescale, curve, releaseNode: 9, loopNode: loopnode) ); var pitch = (env * [1, 0.33, -1] * intv).mid ...
-
... utton down 3: %.\n" .postf([ch, cc, val]) }); g.ccDict; Mapping to JITGuis mapToEnvirGui(gui, scene, indices) - map to an EnvirGui. gui the gui scene in which scene to map map the gui indices which controls to map to. default is [1, 2 .. 8] ...
-
... s= channels ? #[0, 1]; SynthDef(\redTestPink, {|out= 0, gate= 1, amp= 1| var e= EnvGen.kr(Env.perc, gate, doneAction:2); var z= PinkNoise.ar(e*amp); Out.ar(out, z); }).add; Server.default.sync; players.add( Pbind( \instrument, \redTestPink, ...
-
... ) { Error("NodeProxy input: wrong rate/numChannels").throw } } }; { | out | var env; if(proxy.rate === 'audio') { env = EnvGate(i_level: 0, doneAction:2, curve:\sin); XOut.ar(out, env, SynthDef.wrap(func, nil, [In.ar(out, proxy.numChannels) ...
-
... er.verbose = true; Alga.boot({ AlgaSynthDef(\test, { SinOsc.ar(\freq.ar(440)) * EnvGen.ar(Env.triangle(0.5), doneAction:2) }).add; s.sync; a = AlgaPattern(( def: \test, dur: Pseq([0.25]), freq: Pwhite(100, 400) )) //s.plotTree; }); ) ( l = ...
-
... = 0; // a sine wave where the attack and decay are each 10% of the duration var env, osc; env = EnvGen .kr( Env .sine(dur, amp), doneAction: 2); osc = SinOsc .ar(freq, 0, env); OffsetOut .ar(out, osc); }).memStore; ) // Moving through the l ...