Hey community,
is anybody able to tell me why if have to restart my Interpreter after 15 seconds pass in all those Psegs?
When I drop .asStream respectively I don’t get that problem but then the values won’t change inside the Psegs - they stay infinitely in their inital positions (0.24, 1.2 and 2.3)…
I already tried to work around with Envs, Pstep and PstepDur, but it just doesn’t work…
(
Pbindef(\test,
\instrument, \default,
\dur, Pseq([
Pwrand(
list: [
Pwhite(Pseg([0.24, 0.08], 15, 'lin', 1).asStream.trace(prefix: "a: "), 0.24, 1),
Pwhite(Pseg([1.2, 0.9], 15, 'lin', 1).asStream.trace(prefix: "b: "), 1.2, 1),
Pwhite(Pseg([2.3, 1.9], 15, 'lin', 1).asStream.trace(prefix: "c: "), 2.3, 1)
],
weights: Ptuple([
Pwhite(0.35, 0.5, 1),
Pwhite(0.3, 0.45, 1),
Pwhite(0.2, 0.25, 1)
], repeats: inf).collect(_.normalizeSum),
repeats: inf)
], repeats: 1),
).play;
)
Anyone got a clue?
Thank you all in advance!