-
... 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 ...
-
... , 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); ...
-
... 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 ...
-
... 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: ...
-
... . // 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); } ///////////////////////// ...
-
... 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. ...
-
... 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 ...
-
... , 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 ...
-
... 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 ...
-
... 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 ...