▲ 1 r/livecoding
How to play songs in sequence??
I've tried everything to get this to work. I want Part 1 to play, and once it finishes, Part 2 should start. Instead, it keeps merging the patterns.
I've tried stack, slowcat, and cat, but none of them seem to work.
What I want is for each part to play independently in sequence:
Part 1 → Part 2 → Part 3
Right now, it first plays [69@1.5 68@1.5]*2.5, then Part 2, then Part 3, and finally [64 69 <62>@2]. I don't want that—I want each part to finish completely before the next one starts, with no pattern merging.
setcpm(30)
let part1 = note("<[69@1.5 68@1.5]*2.5 [64 69 <62>@2]>").sound("piano")
let part2 = note("[60 62 64 65]").sound("piano")
let part3 = note("[67 69 71 72]").sound("piano")
const tetris = part1
cat(
part1,
part2,
part2
)
u/Consistent_Eagle254 — 3 days ago