Hi,
In this \phrase
type pattern, the repeated pattern plays only for ±80% of its duration. And I don’t understand why. I have tried to reduce it to its smaller expression. It keeps playing only 81,25% of the expected time.
(
Pdef(\arp1, { |notes, pattern, dur|
// var pt=pattern.asStream.debug("pattern"); // 1
var pt=pattern.value.debug("pattern.value"); // 2
var i=1;
notes.value.debug("notes");
dur.value.debug("dur");
// Pfindur(dur.value,
Pbind(
\dur,Pn(0.5,inf),
// \idx,Pfunc{pt.next.debug("idx: ")}, // 1
\idx,pt , // 2
\note,Pindex(notes.value,Pkey(\idx).clip(0,notes.value.size-1))/*.poll("note: ")*/,
\debug, Pfunc({|e| format("%) idx: %",i,e[\idx]).postln; i=i+1}),
)
// )
});
Pdef(\test,
Pbind(
\type, \phrase,
\instrument, \arp1,
\dur, 8,
\notes, Pseq([`[0,4,7,10],`[5,9,12,15]],2),
// \pattern, Pfunc{Pseq([0,1,2,3,2,3,1,2],inf)}, // 1+2
\pattern, Pfunc{Pn(0,inf)}, // 1+2
)
).play;
)
I guess I have a misconception issue somewhere, but can’t find it…