-
... eY.kr(2, -2); var intvs, amps; #intvs, amps = Shepard.kr(5, slope, 12, shift); (PlayBuf.ar(b.numChannels, b, intvs.midiratio, loop: 1) * amps).sum * 0.2 ! 2 }.scope; ) // to do - SynthDef and pattern example... ⧉ ✔ helpfile source: /tmp/scq ...
-
... ree to load a more interesting clip! }); ) ( x = { var sig, onsets, pips; sig = PlayBuf .ar(1, d.bufnum, BufRateScale .kr(d.bufnum), loop: 1); // OnsetsDS - move the mouse left/right to change the threshold: onsets = OnsetsDS .kr(sig, b.buf ...
-
... d); ( { var inA, chainA, inB, chainB, chain; inA = LFSaw.ar(100, 0, 0.2); inB = PlayBuf.ar(1, d, BufRateScale.kr(d), loop: 1); chainA = FFT(LocalBuf(2048), inA); chainB = FFT(LocalBuf(2048), inB); chain = PV_MagMul(chainA, chainB); // write ...
-
... e, imp, delimp, mul = 1; imp = Impulse.kr(10); delimp = Delay1.kr(imp); colum = PlayBuf.ar(1, b, BufRateScale.kr(b), loop: 1) * mul; // measure rms and Peak SendReply.kr(imp, '/levels', [Amplitude.kr(colum), K2A.ar(Peak.ar(colum, delimp).la ...
-
... octave up, 0.5 is one octave down -1.0 is backwards normal rate ... etc. Unlike PlayBuf, the rate is multiplied by BufRate, so you needn't do that yourself. centerPos - the position in the buffer in seconds at which the grain envelope will ...
-
... , start, time = 1, stretch = 1, amp = 1, attack = 0.01, decay = 0.05| var sig = PlayBuf.ar(1, bufnum, rate: stretch.reciprocal, startPos: start), eg; sig = PitchShift.ar(sig, pitchRatio: stretch); eg = EnvGen.kr(Env.linen(attack, time, deca ...
-
Micro-Rythms and micro-melodies with granular synthesis. by jeromelapuyadelahorgue (jerome.lapuyade.lahorgue) Code
... ,amp=0.1,pan=0,freq=440,out; var sig,env,trig; trig=Impulse.ar(freq); sig=PlayBuf.ar(1,~sample2,freq,trig,loop:0); env=Env.adsr.ar(doneAction:2,gate:gate); Out.ar(out,Pan2.ar(sig*env*amp,pan)); }).add; ) ( SynthDef(\essai,{ ...
-
... - SynthDef(\bufPlay2, {|out = 0, bufnum, rateScale = 1, amp = 1| var buf = PlayBuf.ar(2, bufnum, BufRateScale.kr(bufnum) * rateScale, doneAction: 2); Out.ar(out, buf * amp); }).add; SynthDef(\bufADSR2, {|out = 0, gate = 1, buf ...
-
... beepvol=0.0, lock=0; var trackb,trackh,trackq,tempo; var source, beep; source= PlayBuf.ar(1,~source.bufnum,1.0,1,0,1); //see AutoTrack help file #trackb,trackh,trackq,tempo=AutoTrack.kr(source, lock); beep= SinOsc.ar(1000,0.0,Decay.kr(trac ...
-
... sample tracking SynthDef("pitchFollow1",{ var in, amp, freq, hasFreq, out; in = PlayBuf.ar(1,c.bufnum, loop:1); amp = Amplitude.kr(in, 0.05, 0.05); # freq, hasFreq = Tartini.kr(in); out = Mix.new(VarSaw.ar(freq * [0.5,1,2], 0, LFNoise1.kr(0 ...