playback menu entry
This commit is contained in:
+4
-3
@@ -61,7 +61,7 @@ void UIManager::draw(UIState currentState, int menuSelection,
|
||||
|
||||
switch(currentState) {
|
||||
case UI_MENU_MAIN:
|
||||
drawMenu(menuSelection, currentState, midiChannel, tempo, currentStrategy->getName(), queuedTheme, currentThemeIndex, numScaleNotes, scaleNotes, melodySeed, mutationEnabled, songModeEnabled, randomizeTrack, trackMute);
|
||||
drawMenu(menuSelection, currentState, midiChannel, tempo, currentStrategy->getName(), queuedTheme, currentThemeIndex, numScaleNotes, scaleNotes, melodySeed, mutationEnabled, songModeEnabled, isPlaying, randomizeTrack, trackMute);
|
||||
break;
|
||||
case UI_SETUP_CHANNEL_EDIT:
|
||||
display.println(F("SET MIDI CHANNEL"));
|
||||
@@ -114,7 +114,7 @@ void UIManager::draw(UIState currentState, int menuSelection,
|
||||
void UIManager::drawMenu(int selection, UIState currentState, int midiChannel, int tempo, const char* flavourName,
|
||||
int queuedTheme, int currentThemeIndex, int numScaleNotes,
|
||||
const int* scaleNotes, int melodySeed, bool mutationEnabled,
|
||||
bool songModeEnabled, int randomizeTrack, const bool* trackMute) {
|
||||
bool songModeEnabled, bool isPlaying, int randomizeTrack, const bool* trackMute) {
|
||||
|
||||
// Calculate visual cursor position and scroll offset
|
||||
int visualCursor = 0;
|
||||
@@ -160,7 +160,8 @@ void UIManager::drawMenu(int selection, UIState currentState, int midiChannel, i
|
||||
}
|
||||
|
||||
// Dynamic values
|
||||
if (id == MENU_ID_MELODY) {
|
||||
if (id == MENU_ID_PLAYBACK) { display.print(F(": ")); display.print(isPlaying ? F("ON") : F("OFF")); }
|
||||
else if (id == MENU_ID_MELODY) {
|
||||
display.print(F(": ")); display.print(melodySeed);
|
||||
} else if (id == MENU_ID_SCALE) {
|
||||
display.print(F(": "));
|
||||
|
||||
Reference in New Issue
Block a user