What I am after is a constraint that locks e.g freq pattern to a given duration pattern.
Let’s say you have a dur pattern that doesn’t add to even beat counts 4,8,16 etc
I know that Pconst can tame the an uneven dur value pattern to lock to a choosen beat count.
But what if I want the another key e.g \freq pattern to follow the constraint of the dur pattern so
that the \freq pattern wraps to the start of its own sequence whatever the content is.
Tried to use Pfindur but I can’t get it to work
(
// metronome
Pbind(\instrument,\default,
\dur, 1,
\freq,2000,
\amp,Pseq([0.02,0.001,0.001,0.001],inf),
\out, 0,
).play;
// pattern
~pattern= Pbind(\instrument,\default,
\dur, Pn(Pconst(8,Pseq([3.4,0.2,2.1],inf)),inf),
\freq, Pn(
Pfindur(4,Pseq([
Pseq([50,150,75,50],1),
Pseq([50,150,75,50]*1.5,1)
],inf).asStream,0.01),inf),
\amp,0.02,
\out, 0,
).play;
)
Not sure if this is an optimal example…
I prefer to work with my patterns within Pdefs so finding a solution that would work playing around with
Pdefs would be great.