-
... on the gate parameter. gate is normally set to 0 at the end of the note, so we Latch it when applying to the amplitude. ( SynthDef(\moogy, { |out, freq = 440, detun = 1.008, gate = 1, ffreq = 2000, gain = 2, fEgAmt = 4, pan = 0, freqlag = ...
-
... 0x per second) s.waitForBoot { synth = { var trig = Impulse.kr(50); var mouse = Latch.kr(MouseY.kr(0, 1, 0, 0), trig); SendReply.kr(Changed.kr(mouse), '/mouseY', mouse); Silent.ar(1) }.play; }; // Receive them all, but consume them more slo ...
-
... fraccent = ((centroid - locent) / (hicent - locent)).min(1).max(0); fraccentl = Latch.kr(fraccent, Onsets.kr(chain)); Out.kr(0, fraccentl); // fraccent.poll; //heaviness = MouseX.kr(0,1); //heaviness2 = MouseY.kr(0,1); heaviness = LFPar.kr( ...
-
... ted class methods Instance methods makeWindow setDevice arpOn arpOff arpTrad arpLatch legatoOn legatoOff midiCh1 midiCh2 midiChA_CV_Note midiChA_CV_Vel midiChA_CV_Mod midiChA_CV_LFO midiChB_CV_Note midiChB_CV_Vel midiChB_CV_Mod midiChB_CV_L ...
-
... (sig * amp).dup }); ) ⧉ ✔ If you want the instrument to be velocity-sensitive, Latch the gate argument to get the velocity: ( SynthDef.new("harpsi", { |out = 0, freq = 440, gate = 1, amp = 0.1| var sig; amp = amp * Latch.kr(gate, gate) * 0 ...
-
... -> { |in, bits=16, downsamp=2| var krushed = in.round(0.5 ** bits); var down = Latch.ar(in, Impulse.ar(SampleRate.ir / downsamp.max(2))); // below 1/2 downsamp, do xfade: blend(in, down, (downsamp - 1).clip(0, 1)); }, 1, ( \bits: [16, 1], ...
-
... ion = 4| var inSig, env, numFrames = BufFrames.kr(envBuf), startTrig, grainDur, latchedTrigRate, latchedStartTrig, latchedOverlap, pan; inSig = In.ar(in, 1); // reduce feedback inSig = DelayC.ar(LPF.ar(inSig.tanh, 2000), 0.1, 0.01); startTr ...
-
... er -> { |in, bits=16, downsamp=2| var krushStep = 0.5 ** (bits + 1); var down = Latch.ar(in, Impulse.ar(SampleRate.ir / downsamp.max(2))); // below 1/2 downsamp, do xfade: blend(in, down, (downsamp - 1).clip(0, 1)) .round(krushStep); }, 1, ...
-
... er -> { |in, bits=16, downsamp=2| var krushStep = 0.5 ** (bits + 1); var down = Latch.ar(in, Impulse.ar(SampleRate.ir / downsamp.max(2))); // below 1/2 downsamp, do xfade: blend(in, down, (downsamp - 1).clip(0, 1)) .round(krushStep); }, 1, ...
-
... LPF.ar(Mix.ar(p),freq * ffreqInterval.midiratio,rq) * EnvGen.kr(Env.adsr, gate, Latch.kr(gate,gate)) },#[ nil, [[-48,48,\linear,1]], [[-48,48,\linear,1]], [[-48,48,\linear,1]] ]); p = Patch.new([ 'minimoog', 'loose' ],[ nil,nil,nil,nil,nil, ...