-
PlayBuf, granular sampling, Pbind, fork, TGrains ////////////////////// // GRANULAR SAMPLING // Code examples ////////////////////// // Replace path (a string of characters) with a path to a wav or aiff file on your computer b = Buf ...
-
... r(1,12,trig),mul:XLine.ar(0.01,1000,tL)),0.25)!2 })*src3Env*0.1; var src4 = TGrains.ar(2,Dust.ar(320*src1Env),buf1,1,LFNoise1.ar(1)+1*4e5,0.1*LFSaw.ar(4,0,0.5,0.5),0.1,4)*src4Env*0.125; BufWr.ar(src2[0],buf1,LFNoise1.ar(0.2)+1*5e4); ...
-
... e the sine grains with an arbitrary impulse response? You could do that with TGrains, but as the pitch goes up, so does the number of overlapping grains and CPU use along with it. But, convolution of a chain of impulses should be the sam ...
-
... TIONS // Convert transpSlider values (in semitones) // to rate values for TGrains (1 = no transp): transpToRate = {arg transp; transp.linexp(-24, 24, 0.25, 4)}; // Convert from centerPosSlider values (0-1) // to actual sound f ...
-
... trig = Impulse.ar(trigFreq) * (phase + grainDur < BufDur.kr(bufnum)), sig = TGrains.ar(2, trig, bufnum, 1, phase + grainHalfDur, grainDur); Out.ar(out, sig); }).add; s.sync; synth = Synth(\grains, [bufnum: buf]); }; )
-
... rate = Drand([-12, -7, 5, -24, -8, 11, 12, 24].midiratio, inf); snd = Mix(TGrains.ar(2, Impulse.ar(trate), b, rate, LFNoise2.ar(0.1,BufDur.kr(b)), dur, 0, SinOsc.ar(0.1), 2)); Out.ar(out, Pan2.ar(snd, pos, amp)); }).add; S ...
-
Micro-Rythms and micro-melodies with granular synthesis. by jeromelapuyadelahorgue (jerome.lapuyade.lahorgue) Code
... =1,pan=0,freq=440,out,dur; var sig,env,trig; trig=Impulse.ar(freq); //sig=TGrains.ar(2,trig,~sample1,freq,dur:1/freq,amp:1); sig=GrainBuf.ar(2,trig,BufDur.kr(~sample1)/freq,~sample1,freq,pos:0,pan:0); env=Env.adsr.ar(doneAction:2, ...
-
... ]).sum!2}// DAF #sc b=Buffer.read(s,"*/*v".pathMatch@0);play{x=SinOsc;ring4(ar(TGrains,2,kr(Impulse,ar(x,[1,3],0,10,[9,20])),b,1,ar(x,1/9),0.01),ar(x,1e3))*9} b=Buffer.read(s,"*/*v".pathMatch[0]);play{TGrains.ar(2,Impulse.kr([9,19]*LFNois ...
-
... TIONS // Convert transpSlider values (in semitones) // to rate values for TGrains (1 = no transp): transpToRate = {arg transp; transp.linexp(-24, 24, 0.25, 4)}; // Display file names on random places on window displayFileName ...
-
... ]).sum!2}// DAF #sc b=Buffer.read(s,"*/*v".pathMatch@0);play{x=SinOsc;ring4(ar(TGrains,2,kr(Impulse,ar(x,[1,3],0,10,[9,20])),b,1,ar(x,1/9),0.01),ar(x,1e3))*9} b=Buffer.read(s,"*/*v".pathMatch[0]);play{TGrains.ar(2,Impulse.kr([9,19]*LFNois ...