-
... by ear var blockDelaySecs = ControlDur.ir * i_blockDelay; incidence = incidence.clip(0,1); amp = amp.clip(-1,1); ampScaled = abs(amp) **(0.7); lpassFq = 100 + (incidence**(0.7) * 21900) ; // used to cut highs when incidence is low hpassFq = ...
-
... = 0.030; var outsig; // limit cutoff freq range and smooth changes lpHz = lpHz.clip(5.0, 20000.0).lag3(slewFilter); hpHz = hpHz.clip(5.0, 20000.0).lag3(slewFilter); outsig = in * gain.lag(slewGain); outsig = DelayC.ar( outsig, maxdelaytime ...
-
... , timescale = 1, sustain = 0.1| var segGates = (numsegs - (1..q.gendy.maxSegs)).clip(0, 1); var levels = \levels.ir({ 1.0.bilinrand }.dup(q.gendy.maxSegs - 1)) * segGates.drop(1); var samps = \times.ir({ exprand(3, 300) }.dup(q.gendy.maxSeg ...
-
... n(theta); var outsig; // limit cutoff freq range and smooth changes lpHz = lpHz.clip(5.0, 20000.0).lag3(slewFilter); hpHz = hpHz.clip(5.0, 20000.0).lag3(slewFilter); outsig = in * gain.lag(slewGain); outsig = DelayC.ar( outsig, maxdelaytime ...
-
... ar(12, 0.02 * BufSampleRate.ir(bufnum)); phase = phase + scratch; phase = phase.clip(0, BufFrames.ir(bufnum)); sound = BufRd.ar( numChannels: sampleNumChannels, bufnum: bufnum, phase: phase, loop: 0, interpolation: 4 // cubic interpolation ...
-
PClip UGenPatterns quark library superclass: PInRange based on Clip PClip(pattern, lo, hi) pattern lo (default: 0) hi (default: 1) // example s.boot; a= Pbind ( \dur , 1/3, \legato , 0.4, \midinote , PClip ( Pseq ([0, 2, 4, 5], inf ), 2, 4) ...
-
... d pressure mod (cc1) on those chans // Preset D is for drums (uses chan 10) and clips // code example for global note responder + voicer: MKtl.find(\midi); z = MKtl('qnxs0', "*qunexus*AB"); // a debug post for all elements: z.elAt.action = ...
-
... ; index = (index + inc - dec).round(1); index = Select.kr( (wrap + (reset * 2)).clip(0,2), [ index.clip(0,n-1), index.wrap(0,n), resetIndex, ]); LocalOut.kr(index); //index = Stepper.kr( trigger, reset, range[0], range[1], step ); values = ...
-
... nder.ar(hiSig, hiSig, hiLim, 1, 0.0, 0.0, 0.1); sumOut = loOut + hiOut; // hard clip for peaks that escape equal-power-bandsplit SendReply.ar(sumOut.abs > 1.0, "/clipped", (0..sumOut.lastIndex)); sumOut.clip2(limit); }, 1, ( limit: [0.1, 1, ...
-
... ; index = (index + inc - dec).round(1); index = Select.kr( (wrap + (reset * 2)).clip(0,2), [ index.clip(0,n-1), index.wrap(0,n), resetIndex, ]); LocalOut.kr(index); //index = Stepper.kr( trigger, reset, range[0], range[1], step ); values = ...