-
... rand(0.01, 1); u = SinOsc.ar(d * 300, u, rrand(0.1, 0.4) * d, 1) }; Out.ar(out, Pan2.ar(SinOsc.ar(u + 1 * freq, 0, amp * env), pan)); }).store; ) ( a = Pbind( \freq, Pshuf([203, 490, 231, 764, 234], inf), \dur, Pshuf([0.5, 0.5, 1.0, 0.25, 0 ...
-
... ring, { |out, freq = (60.midicps), amp = 0.1, pan, sustain = 1.234| Out.ar(out, Pan2.ar( Formant.ar(freq, freq * 2, freq * 5), pan, XLine.kr(amp, amp * 0.001, sustain) ) ); }).add; ) g.prime(\prring); g.hasGate; g.put(64, [\freq, 64.midicps ...
-
... a scroller appears ( // test too many 10.do { |i| p[("test" ++ i).asSymbol] = { Pan2.ar(Ringz.ar(Impulse.ar(exprand(0.5, 4)), exprand(300, 3000), 0.02), 1.0.rand2, 0.2) }; }; ) 10.do { |i| p[("test" ++ i).asSymbol].playN(vol: linrand(1.0), ...
-
... s.boot; ( SynthDef(\singrain, {arg outbus, freq, amp, dur; OffsetOut.ar(outbus, Pan2.ar( SinOsc.ar(freq, 0, amp) * EnvGen.kr(Env.sine(dur, amp), doneAction: 2), Rand.new(-1.0, 1.0) ) ) // read off the overall env control of the ProcMod }).a ...
-
... thods Examples SynthDef(\singrain, {arg freq, amp, dur, envbus; OffsetOut.ar(0, Pan2.ar( SinOsc.ar(freq, 0, amp) * EnvGen.kr(Env.sine(dur, amp), doneAction: 2) * In.kr(envbus), Rand.new(-1.0, 1.0) ) ) // read off the overall env control of ...
-
... tion: 2); src = BPF.ar(WhiteNoise.ar(amp), freq, 0.01, amp * envgen); Out.ar(0, Pan2.ar(src, Rand(-1.0, 1.0))); }); ) // create a new instance of CtkNote based on this prototype b = a.note; // set values for its arguments. See the CtkNote h ...
-
... 1, amp = 0.5, pan = 0| var window; window = Env.sine(sustain, amp); Out.ar(out, Pan2.ar( SinOsc.ar(freq) * EnvGen.ar(window, doneAction: Done.freeSelf), pan ) ) } ).add; times = Pseq([3.4, 1, 0.2, 0.2, 0.2], inf); levels = Pseq([0, 1, 2, 3, ...
-
... uth = atan2(y, x); // azimuth in radians panValue = (azimuth / 0.5pi).clip2(1); Pan2.ar(FSinOsc.ar(1000 * pitchRatio), panValue, amplitude) }.play) ( { var x, y, distance, velocity, pitchRatio, amplitude, motorSound, azimuth, panValue; // o ...
-
... le: dur); src = BPF.ar(WhiteNoise.ar(amp), freq, 0.01, amp * envgen); Out.ar(0, Pan2.ar(src, Rand(-1.0, 1.0))); }) ); score = CtkScore.new; //creates a granular gesture of duration. Each grain is 0.1 seconds long, new grain every 0.02 secon ...
-
... Noise.ar(0.5)*EnvGen.ar(Env([1,1,0],[delays.value.sum,0.0]), trigger); Out.ar(0,Pan2.ar(Limiter.ar(NTube.ar(source,loss, k, delays),0.99,0.01).min(1.0).max(-1.0),0.0)); }.play ) //could be piercing if sine frequencies put higher, also poten ...