9 Feb 18:13
scroll randomly inside the buffer
Hello, I want to create inside my synthdef a random scroll which I will
control it by the pattern, so means I need to define the factor as an
argument, my synth looks like this, I have a dust now where suppose it
scroll randomly inside the each BufFrame, even it sounds like I have some
doubts could that implemented better.
Thanks
Best
\K.
(
SynthDef(\grains,{
|bufnum=0, trigger=1, startPos=0.0, rate= 1, attack=0.01,
sustain=0.6,
release=0.5, panDev=200, pan=0.5, st=0.0|
var play;
Out.ar(0,Pan2.ar(
Linen.kr(Impulse.kr(0), attack, sustain, release, doneAction: 2)*
play=PlayBuf.ar(1, bufnum, BufRateScale.kr(bufnum) * rate, trigger,
Dust.kr(0, 1.linlin(0,1,st,BufFrames.kr(bufnum))),
loop:0, doneAction:2),
Dust.kr(panDev, pan),0.7)
)
}).add;
)
--
--
bla...bla http://konstantinos-vasilakos.blogspot.com/
_______________________________________________
sc-users mailing list
(Continue reading)
RSS Feed