Hi,
I’m looking for the best way to trigger a Pdefn from outside the pattern (where it’s originally nested). I’m busy playing my saxophone (so lack of hands to trigger stuff ‘when’ I’m playing). What I’m trying to do is set up an original Pdefn to trigger\rate
in this case. Then write several different versions (of the \rate Pdefn) which I can use outside of the Pbindef. A simple example:
(
Pdefn(\rate, Pdef([1,2,3], inf));
Pbindef(\ex,
\instrument, \test,
\rate, Pdefn(\rate),
etc....
)
As an example I can manually change these outside to create different textures by evaluating each line as needed:
Pdefn(\rate, Pdef([3,4,5], inf));
Pdefn(\rate, Pdef([6,7,8], inf));
However, I have to manually select the line and run it. But, when I’m playing I’d like to be able to let these Pdefn trigger themselves (if you see what I mean), or run automatically, as an example two times, then three times, ad infinitum…
Pdefn(\rate, Pdef([3,4,5], inf));
x 2
Pdefn(\rate, Pdef([6,7,8], inf));
x 3
What would be the most logical way of doing this? To build a separate Pbind (with a quant), a Routine/Task? I suspect I’m going a long way about this problem, I’d much appreciate it if someone could point me in the right direction.
Thanks in advance - joesh