playback menu entry

This commit is contained in:
Dejvino
2026-02-19 11:15:47 +01:00
parent d70e30d76f
commit 617251ffc2
5 changed files with 17 additions and 4 deletions
+10
View File
@@ -200,6 +200,16 @@ static void handleInput() {
}
switch(menuItems[menuSelection].id) {
case MENU_ID_PLAYBACK:
isPlaying = !isPlaying;
if (isPlaying) {
playbackStep = 0;
clockCount = 0;
lastClockTime = micros();
} else {
queuedTheme = -1;
}
break;
case MENU_ID_MELODY:
midi.lock();
melodySeeds[randomizeTrack] = random(10000);