-
//This tweet sounds pretty awesome on the windows version but I cannot get supercollider to render a proper recording of it. fork{x={Klang.ar(`(Array.fill(20,{[500.rand,1.0.rand,2pi.rand]})))};loop{play{x.()*x.()*x.()*EnvGen.kr(Env.line ...
-
... .17))*Saw.ar(SinOsc.ar([0.04, 0.024]).abs*SinOsc.ar(0.001).range(620,720)),0.5).clip(-0.7,0.7)!2;x=x+DelayN.ar(x,2,SinOsc.ar(0.1,0,1.9,1).abs);x=x+DelayC.ar(x)}.play #LunchBreak #TooLongToTweet
-
... , 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 = ...