On 2015-12-19 22:54, chanof wrote:
HiI'm trying to sequence a kick and a hat , now the code is eaten the first kick at the start , I can't understand why , the first sound i hear is the hat , PulseDivider should serve this purpose ,how can i fix it?, how can Iget the result keeping one trig impulse ? Thanks play{ t= T2A.ar(Impulse.kr(12)); s = EnvGen.kr(Env.perc(0, 0.1, 1, -4),PulseDivider.ar(t,2)); r = Ringz.ar(PulseDivider.ar(t,4),49,0.5,1); b= BPF.ar(s * LFNoise0.ar(10000 ),10000,1,0.5); (r+b)!2 }
PulseDivider.ar(t,2) isolates every second trigger. PulseDivider.ar(t,4) isolates every fourth trigger. Having a look at a graph might help illustrate why the PulseDivider.ar(t,2) is triggering first:
{ PulseDivider.kr(Impulse.kr(10), [2, 4]) }.plot(1.0);
The solution is to offset the counter for the first bass by changing the
"start" argument to PulseDivider. Try replacing PulseDivider.ar(t,4)
with PulseDivider.ar(t,4,2).
Regards, Nathan _______________________________________________ sc-users mailing list info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx archive: https://listarc.bham.ac.uk/marchives/sc-users/ search: https://listarc.bham.ac.uk/lists/sc-users/search/