-
... 0.1, amp = 0.1| var sig = { WhiteNoise.ar } ! 2; sig = BPF.ar(sig, freq, rq) * EnvGen.ar(Env.perc(att, rel, amp), doneAction: 2) * (rq ** -1) * (250 / (freq ** 0.8)); OffsetOut.ar(out, sig); }).add; SynthDef(\sin_grain, { |out = 0, freq = ...
-
... 0, 26)) .states_([["play", Color.black, Color.rand]]) .mouseDownAction_({ a = { EnvGen.kr(Env.adsr, doneAction: Done.freeSelf) * SinOsc.ar(440, 0, 0.4) }.play; }) .action_({ |butt, mod| a.release(0.3); }); w.front; }) ) ⧉ ✔ If you drag a fu ...
-
... .duration } speeds { ^this.distances / this.times } // speeds in m/s asTimeIndexEnv { ^Env( [0] ++ this.times.collect({ |time, i| i+1 }), this.times ); } indexAtTime { |time = 0| ^this.asTimeIndexEnv.at( time ); } timeAtIndex { |index = 0| ...
-
... { SynthDef(\click, { |freq = 400, amp = 0.2| var sig = SinOsc.ar(freq, 0.5pi) * Env.perc(0.001, 0.06).ar(Done.freeSelf, levelScale: amp); OffsetOut.ar(0, sig.dup) }).add; }); ) // create a synchronized clock l = LinkClock(1).latency_(Server ...
-
... ce); sig = Splay .ar(sig); OffsetOut .ar(0, Balance2 .ar(sig[0], sig[1], pan) * EnvGen .ar( Env .perc(att, rel), doneAction: 2)) }).add; ) ( // base pattern, no need to provide durations, as they are calculated from other PSPdiv args p = Pb ...
-
... d compatibility // current embedInStream implementation is incorrect // because Envs as streams do not terminate anymore Pinterp : FilterPattern { var <>times, <>curves; *new { |pattern, times = 1.0, curves = \lin| ^Pseg(pattern, times, cur ...
-
... ); // warp lower hemisphere toward the origin as points move "down" // elWarp = Env([-pi/2, 0, pi/2], [pi/2, pi/2], [-3, 0]); elWarp = Env([0.25, 1, 4], [pi/2, pi/2], 2); // 0>1 scalar // algorithmic rainbow color scheme getColor = { |gain| ...
-
... ource); sig = Splay.ar(sig); OffsetOut.ar(0, Balance2.ar(sig[0], sig[1], pan) * EnvGen.ar(Env.perc(att, rel), doneAction: 2)) }).add; ) ( // base pattern p = Pbind( \instrument, \varKlank, \midinote, Pwhite(65, 90), \amp, 0.1, \att, Pwhite( ...
-
... nodeID, \gate, gate], #[error, -2]] } releaseCallBack { ^nil } // release using Env's releaseNode // freq argument is because scheduled releases may be talking to a node that's been stolen. // In that case, the frequency will be different a ...
-
... e.parse` does not return `NaN` on invalid date * Fix strict violation in broken environments 0.15.0 / 2017-02-25 =================== * Support `If-Match` and `If-Unmodified-Since` headers * Add `res` and `path` arguments to `directory` even ...