Hey, I would like to do something of a nested Pstutter in Patterns.
The basic idea is to use this for a high hat which hits on every first stroke. But makes a random amount of repeat until the next stroke. To archive this i thought that some kind of nested Pstutter would help.
I elaborate this in another further example, i hope my question becomes clear:
(
SynthDef(\hat,{
var sig;
sig = GrayNoise.ar()* Line.kr(1,0,0.1,\amp.kr(0.2),doneAction:2);
Out.ar(\out.kr(0),sig!2);
}).add;
)
//this is what it is supposed to do:
(
Pbind(
\instrument, \hat,
\stutter, Pstutter(Pseq([1,2,3,4],inf),Pseq([1,2,3,4],inf)),
\dur, 1/Pkey(\stutter).trace,
).play
)
//this is the theortical way i want to have it done, but it doesnt work:
(
Pbind(
\instrument, \hat,
\stutter_reference,Pseq([1,2,3,4],inf), //here is some possibly later random reference for the \stutter key
\stutter, Pstutter(Pkey(\stutter_reference),Pkey(\stutter_reference)), //this does not get the right stutter reference, because its moving independetly
\dur, 1/Pkey(\stutter).trace,
).play
)
Basically in the second Pattern i want to archive the same as in the first, when considering the \stutter_reference to be also possibly random or something like this. Could this be done somehow?
Thank you very much!