Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (783) Code (80) Doc (245) Help (61) Quark (379) Plugin (18) SCDoc ↗ Forum ↗ Google ↗
  1. JoshPV Plugin

    ... ntrol', buffer, ratio); } } + SimpleNumber { calcPVRecSize {arg frameSize, hop, sampleRate; var rawsize, tmp; sampleRate = sampleRate ?? {Server.default.sampleRate}; rawsize = (((this * sampleRate) / (frameSize)).ceil * frameSize); ^rawsize ...

  2. blbufrd-test Plugin

    ... a buffer with an impulse-train b = Buffer.alloc(Server.default, Server.default.sampleRate*2, 1); { RecordBuf.ar(Blip.ar(440, SampleRate.ir/440), b.bufnum) }.play // play back with double speed - heavy aliasing occurs with BufRd and cubic i ...

  3. PredPrey Plugin

    ... ar which = \which.kr(0, 0.1); var x, y, z; # x, y, z = ArneodoCoulletTresser.ar(SampleRate.ir*0.5, alpha: \alpha.kr(1.5), h: \h.kr(0.01)); # x, y, z = [x, y, z] - 0.5 * 0.1; [[x, y, z], [y, z, x]].collect{|chan| SelectX.ar(which, chan); } } ...

  4. FincoSprottL Plugin

    ... the x value: // Vary the freq with the mouse { FincoSprottL .ar( MouseX .kr(20, SampleRate .ir)).poll(2) * 0.3 }.play(s); // Vary the parameter "a". // NB the parameter affects the amplitude, so this example is clipped { FincoSprottL .ar( S ...

  5. BiquadEQ Plugin

    ... q, beta, sr, y; var b0, b1, b2, a0, a1, a2, az, k; k = dbgain.dbamp; sr = 2pi / SampleRate.ir; wc = sr * freq; // freq in radians dw = rq * wc; // bandwidth in radians dw = (dw/2).tan; // delta is only used to compute § beta = (1 - dw) / (1 ...

  6. BBlockerBuf-examples Plugin

    ... Random_(true) .makeCollection.as(LocalBuf); LeakDC.ar(Pan2.ar(*BBlockerBuf.ar(s.sampleRate, b))); }) ) ( a = BBlockerProgram([0, 0, 0, \ORG, \NOP, \NOP, \NOP] /* <-- some space*/ ++ ([\PSHL, -3, \PSHL, -5, \POP]) ++ [\JMP, 1]); Ndef(\one, { ...

  7. BBlockerBuf Plugin

    ... dom_(true).makeCollection.as(LocalBuf)}!num; #pos, src = ({|i| BBlockerBuf.ar(s.sampleRate, b[i])}!num).flop; Pan2.ar(LeakDC.ar(src) * 0.02, pos).sum.tanh; }) ) Ndef(\many).play Ndef(\many).fadeTime = 30 ( Tdef(\manyPlay, { loop{ (2*Ndef(\m ...

  8. joshfilts Plugin

    ... var c, cc, twodC; var out; out = in; damping.asArray.do({ arg df; c = (pi * fc/SampleRate.ir).tan.reciprocal; cc = c.squared; twodC = 2 * df * c; b0 = (1 + twodC + cc).reciprocal; b1 = 2 * b0; b2 = b0; a0 = 1; a1 = 2 * b0 * (1 - cc); a2 = ...

  9. TestMovingSum Plugin

    ... in, sumWin) } ]; this.bootServer(Server.default); numTestSamps = Server.default.sampleRate / 2; // ramp up to sumWin and hold that value through numTestSamps testOutput = (1.0, 2 .. sumWin)++(numTestSamps - sumWin).asInteger.collect{sumWin} ...

  10. FreeVerb1 Plugin

    ... var timeOneSample; // used for comb average-filtering; // timeOneSample = Synth.sampleRate.reciprocal; timeOneSample = (SampleRate.ir).reciprocal; // Initialize the tap table for early reflections tapData = // delay amplitude Moorer/Loy num ...

1 2 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow