Melody randomizes tracks length

This commit is contained in:
Dejvino
2026-03-05 00:11:35 +01:00
parent 27fd42442c
commit 84ef40a555
2 changed files with 6 additions and 3 deletions
+4
View File
@@ -387,6 +387,10 @@ static void handleInput() {
case MENU_ID_MELODY:
midi.lock();
melodySeeds[randomizeTrack] = random(10000);
randomSeed(melodySeeds[randomizeTrack]);
for (int i = 0; i < NUM_TRACKS; i++) {
numSteps[i] = random(1, NUM_STEPS + 1);
}
if (isPlaying) {
int theme = (queuedTheme != -1) ? queuedTheme : currentThemeIndex;
if (!sequenceChangeScheduled) {