Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (123) Code (20) Doc (31) Help (12) Quark (57) Plugin (3) SCDoc ↗ Forum ↗ Google ↗
  1. WavetablePrep Quark

    ... ta_K2A.findMethod(\ar).argNames.includes('ramp')) { K2A.ar(ugen, 0) } { Duty.ar(SampleDur.ir, 0, ugen) } } { ugen } }; var evenMap = zeroOrderHold.(mapIndex.round(2) * wtSize); var oddMap = zeroOrderHold.(((mapIndex + 1).round(2) - 1) * wtS ...

  2. Hilbert Quark

    ... , add = 0| var out, real, imag; var quadOsc, delay, phaseOffset; delay = size * SampleDur.ir - ControlDur.ir; phaseOffset = (-2pi * freq * delay).mod(2pi); quadOsc = SinOsc.ar(freq, [pi/2, 0] + phaseOffset); real = HilbertWRe.ar(in, size); ...

  3. XiiGrainBox Quark

    ... List, bufferList, popup, openFile, sndNameTextField, sndNmeFieldList, sndNList, sampleDurList, cpu, popupOutBus; var xfield, yfield, infoFunc, infoButt, record, recorder, s, r, b; var startStopButt, randCntrPos; var paraDict1, paraDict2, ge ...

  4. lcode07synths.scd by 0-91 (tedthetrumpet) Code

    ... var pointer, sig, fscale; fscale = freq/60.midicps; pointer = Phasor.ar(0, SampleDur.ir/BufDur.kr(buf) * rate); sig = Warp1.ar(1, buf, pointer, freqScale:fscale, windowSize:0.3, envbufnum:-1, overlaps:16, windowRandRatio:0.1, interp: ...

  5. Writing_Unit_Generators Help

    ... . // initialize a constant for multiplying the frequency unit->mFreqMul = 2.0 * SAMPLEDUR ; // get initial phase of oscillator unit->mPhase = IN0 (1); // 3. calculate one sample of output. MySaw_next_k (unit, 1); } ///////////////////////// ...

  6. LFGauss Help

    ... for very small width we are "approaching" a dirac function { LFGauss .ar(0.01, SampleDur .ir * MouseX .kr(10, 3000, 1)) * 0.2 }.play; // dur and width can be modulated at audio rate ( { var dur = SinOsc .ar( MouseX .kr(2, 1000, 1) * [1, 1. ...

  7. TZeroXBufRd Quark

    ... h Sweep because of Trig1 init issue localGateDur = localXRep * localZeroXDiff * SampleDur.ir; localGate = Sweep.ar(localTrig) < localGateDur; // the combination of localGate and Sweep + modulo implements repetitions localPhase = Sweep.ar( l ...

  8. DbufTag Doc

    ... , the synth is freed (doneAction: 2) ( { var tag, index, axiom, rules, dt; dt = SampleDur.ir; // play with audio rate axiom = [1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1]; rules = [[1, 0], [1, 1, 0, 1]]; // axiom = axiom.scr ...

  9. ZeroXBufRd Quark

    ... for syncing, add 1 to baseX as zero should trigger too ... phaseTrig = TDuty.ar(SampleDur.ir * zeroXDiff, 0, baseX + 1); // ... need value again, correct phaseOffset = Latch.ar(phaseTrig - 1, phaseTrig); count = PulseCount.ar(phaseTrig); ti ...

  10. MultiWtOsc Doc

    ... nd phase modulation, for any modulation index: SinOsc.ar(0, Phasor.ar(0, freq * SampleDur.ir, 0, 2pi) + (phaseMod * modIndex)) should sound the same as SinOsc.ar(freq * (1 + (phaseMod * modIndex))) . Because MultiWtOsc's internal phase is 0 ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow