Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (285) Code (19) Doc (91) Help (18) Quark (156) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. SmoothClip Quark

    ... + lo; // avoid zero division with lo = hi dif = max(dif.abs, delta) * ((dif >= DC.perform(selector, 0)) * 2 - 1); fromFactor = 2 / dif; fromOffset = fromFactor * hi.neg + 1; in = fromFactor * in + fromOffset; // this excludes the border ca ...

  2. BlumAnalyze Quark

    ... r(right.squared, size) } ); // the regularization - avoid divide by zero! reg = DC.ar(this.reg.dbamp); // analyze balance balance = normfac * (left2 - right2) / ((left2 + right2) + reg); ^balance } *kr { |in, size = 2048, method = \instant| ...

  3. CutBuf3 Quark

    ... func, dutycycle, atk, rel, curve); } initCutBuf2 {arg bcb, off, dm,pt,pstt, pf, dc,ap,rp,c; bbcutbuf=bcb; offset= off ? 0.0; deviationmult= dm ? 1.0; //maintain all time deviations in groove by default pretrim= pt ? true; //no anticipations ...

  4. RedTapeRecorder Quark

    ... , lag= 0| //1=no, 2=linear, 4=cubic var playTrigger= 1-gate; var mute= Latch.ar(DC.ar(1), gate)*(1-muteWhileRecording|playTrigger).lag(lag); var recPhasor= Gate.ar( EnvGen.ar( Env(#[0, 1, 0], #[1, 0], 'lin', 1), gate, BufFrames.kr(buffer), ...

  5. SoundFileAnalysis Quark

    ... audio-rate for BufWr.ar if(j == 0) { BufWr.ar(i * numOutputChannels, resultbuf, DC.ar(0), loop: 0) }; // number of total points in index 0, just once } { if(trig.rate != \control) { trig = T2K.kr(trig) }; i = PulseCount.kr(trig); BufWr.kr(v ...

  6. CutStream3 Quark

    ... ycle, atk, rel, curve); } initCutStream3 {arg aed, off, sw, dm,pt,pstt, nb, pbs,dc,ap,rp,c; deallocate=false; //inbus=ib ?? {Server.default.options.numOutputBusChannels}; database = aed; //can't be nil, dealt with in setup offset=off ? 1; s ...

  7. Block Quark

    ... .ar(lowpass[0]), NN(key, \forward).ar(lowpass[1])]; SelectX.ar(trig.lag(time), [DC.ar(0), sig]) * amp; } ], [ 'nntds', {arg bus=1, amp = 1, lowcut= 20, hicut= 20000; var input, highpass, lowpass, key; input = SoundIn.ar(bus-1); highpass = H ...

  8. NodeSnapshot_unittest Quark

    ... er(); 1.wait; SynthDef(\NodeSnapshotTestA, { |a, b = 2, c = #[1, 2]| Out.ar(10, DC.ar([0, 0])); Out.kr(20, DC.kr([0, 0, 0])); }).add; s.sync; ~synth = Synth(\NodeSnapshotTestA); ~testSnap.({ |sn| test.assertEquals(sn.root.children[0].childr ...

  9. TestMultithreading_wip Quark

    ... nthDef(\test, { Mix(Array.fill(1000, { | i | SinOsc.ar(\freq.kr(100) * i) })) * DC.ar(0) }).add; 4.do { AlgaNode(\test) }; fork { loop { s.avgCPU.postln; 1.wait; } } }, algaServerOptions: AlgaServerOptions(blockSize: 64, supernova: true, su ...

  10. synth Quark

    ... Select.ar(cpSaturate, [in, (in + K2A.ar(cpBias)).softclip - cpBias]); in = LeakDC.ar(in); in = in * env; DirtPause.ar(in, graceTime: 4); // dryAmplitude, SendPeakRMS.kr(dry, replyRate: 16, peakLag: 3, cmdName:"/cpInRms", replyID: orbitInde ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow