-
... x = RLPF.ar(x, fc, rq, amp).softclip; x = Balance2.ar(x[0], x[1], bal); x = x * EnvGen.kr(Env.cutoff, gate, doneAction: Done.freeSelf); Out.ar(out, x); }, [0.1, 0.1, 0.1, 0.1, 0.1, 0] ).add; // make the window w = Window("another control pa ...
-
... 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 = ...
-
... ; sig = Mix(VarSaw.ar([freq, freq * detune], 0, width, preamp)).distort * amp * EnvGen.kr(env, gate, doneAction: Done.freeSelf); sig = LPF.ar(sig, ffreq); Out.ar(out, sig ! 2) }).add; ) ( TempoClock.default.tempo = 132/60; p = Pxrand([ Pbin ...
-
... 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 ...
-
... bufnum, rate: rate * BufRateScale.kr(bufnum), startPos: start, loop: 0 ), env = EnvGen.kr(Env.linen(0.01, time, 0.05, level: amp), doneAction: Done.freeSelf); Out.ar(out, (sig * env).dup); }).add; SynthDef(\bell, { |out, accent = 0, amp = 0 ...
-
... ol points pinned to a timeline. (If you need to control points, you can play an EnvGen onto the control.) . automate Play a Synth or other object on the bus. Generally you should use this method, because it tracks the automation player. Als ...
-
... 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( ...
-
... SynthDef("distortion",{arg size; //env is important to mute some rests var env=EnvGen.ar(Env.new([1,1,0], [size/SampleRate.ir,0]), doneAction: 2); //input var sig=In.ar(100); //the effect sig=sig%2-1*0.1; //output_ ReplaceOut.ar(100,sig); ...
-
... r mono source src = PinkNoise.ar(-6.dbamp); // amplitude scaling envelope env = EnvGen.kr( Env([0, 1, 0], [0.5, 0.5], \sin), timeScale: duration, doneAction: 2); // Encode into our foa signal foa = FoaPanB.ar(src, theta, phi, env); Out.ar(o ...
-
... var src = SinOsc.ar(freq, 0, mul: preAmp).tanh ! 2; OffsetOut.ar(0, src * amp * EnvGen.ar(Env.perc, doneAction: 2)) }).add; ) ( p = Pbind( \instrument, \synth_1a, \preAmp, PL(\preAmp), // or Pfunc { ~preAmp } \amp, PL(\amp), // or Pfunc { ~ ...