Hi
I’m sure I’ve asked this before, but could someone tell me how to link key values from one pattern to another - in this case I want to use the \dur from one pattern to control the others.
I’m not sure if you want a solid example, but simply put I’d like this to work:
(
a = Pbind(
\instrument, \default,
\dur, Prand([1, 0.5], inf),
\degree, 1,
);
)
(
b = Pbind(
\instrument, \default,
\dur, Pkey(\dur),
\degree, 3,
);
)
Ppar([a, b], 4).play;
Now as long as I use a straight Pseq, or other, everything is fine, however, the important part (as you may have noticed) is the Prand. How can I get pattern ‘b’ to use exactly the same random stream coming from ‘a’? I’ve tried various ideas with Pchain, Pseed thinking maybe the seed might help, but as yet haven’t managed to get a result.
Any suggestions?
Thanks in advance - joesh
p.s. I’m often using Pdef, with the Pbind inside. So if someone has a better idea using Pdef, Pbindef etc …