Hello again, also got another questions to pattern.
I was wondering how it would be possible to exchange the variable of a pattern to another pattern. Similar to Pkey(\variable) within a single Pbind, just by exchanging it to another.
I try to clarify this in some code, i hope the comments make it clear:
TempoClock.tempo=1; //b plays the same note as a, because its hard coded in it ( l = [60,65,64,67,65,60,57,62]; a = Pbind(\dur, 1, \midinote, Pseq(l)-12).play; b = Pbind(\dur,0.5,\midinote, Pstutter(2,Pseq(l))).play; ) ( //now, there is no easy way to hard code it, is it possible for b to track the midi note of a? l = [60,67,67,65,64,62,60,60]; a = Pbind(\midinote, Pseq(l)-12).play; b = Pbind( \dur,Prand([Pseq([1/3],3),Pseq([1/2],2)],8),//randomized pattern \midinote,Pstutter(2,Pseq(l,inf)), //how to track a's midinote? ).play; ) //i wish to make b let the same note play as a in the same time frame.
If something is unclear, maybe i can reformulate it, but basically, I want the pattern b to allways play the same note as pattern a, by some kind of information exchange from the a pattern.
Thanks for your help/reading.
[EDIT]: Changed the code formatting style