Hello and welcome,
it’s one of those questions that come frequently, one solution would be this:
~notes = [1, 2, 3]
(
Pbind(
\degree, Pn(Plazy { Pseq([~notes]).flatten }),
\dur, 0.5
).trace.play
)
~notes = [1, 2, 7]
Three other variants for the nearly identical question here:
Also see this thread with the alternative writing with miSCellaneous_lib quarks’s PLx patterns
Greetings
Daniel
1 Like