Hi all,
I’ve recently noticed that the arguments of Pseries
behave differently depending on how they are used. Specifically, it works fine when I pass a pattern into the step:
argument, but I get an error when I try to do the same with the length:
argument.
This works:
(
a = Pbind(
\midinote, Pseries(
start: 50,
step: Pbrown(-1.0, 3.0, 0.1, inf),
length: 5
).loop,
\dur, 0.1
);
p = a.play;
)
p.stop;
This gives an error (“Non Boolean in test”):
(
a = Pbind(
\midinote, Pseries(
start: 50,
step: Pbrown(-1.0, 3.0, 0.1, inf),
length: Pseq([5, 10], inf)
).loop,
\dur, 0.1
);
p = a.play;
)
p.stop;
Why does this happen? Is length:
not allowed to take a pattern input, or is there a different way to achieve variable lengths in a Pseries
?
Thanks in advance for any insights!