Drop mono mode
This commit is contained in:
+18
-20
@@ -66,7 +66,14 @@ void UIManager::draw(UIState currentState, int menuSelection,
|
||||
drawMenu("MAIN MENU", mainMenu, mainMenuCount, menuSelection, currentState, midiChannel, tempo, currentStrategy->getName(), queuedTheme, currentThemeIndex, numScaleNotes, scaleNotes, melodySeed, mutationEnabled, songModeEnabled, theme1Index, playMode, randomizeTrack, trackMute);
|
||||
break;
|
||||
case UI_MENU_RANDOMIZE:
|
||||
drawMenu("PLAY", randomizeMenu, randomizeMenuCount, menuSelection, currentState, midiChannel, tempo, currentStrategy->getName(), queuedTheme, currentThemeIndex, numScaleNotes, scaleNotes, melodySeed, mutationEnabled, songModeEnabled, theme1Index, playMode, randomizeTrack, trackMute);
|
||||
{
|
||||
const char* title = "TRACK";
|
||||
// Main section items: Setup(0), Melody(1), Scale(2), Tempo(3), Song Mode(4)
|
||||
if (menuSelection <= 4) {
|
||||
title = "MAIN";
|
||||
}
|
||||
drawMenu(title, randomizeMenu, randomizeMenuCount, menuSelection, currentState, midiChannel, tempo, currentStrategy->getName(), queuedTheme, currentThemeIndex, numScaleNotes, scaleNotes, melodySeed, mutationEnabled, songModeEnabled, theme1Index, playMode, randomizeTrack, trackMute);
|
||||
}
|
||||
break;
|
||||
case UI_MENU_SETUP:
|
||||
drawMenu("SETUP", setupMenu, setupMenuCount, menuSelection, currentState, midiChannel, tempo, currentStrategy->getName(), queuedTheme, currentThemeIndex, numScaleNotes, scaleNotes, melodySeed, mutationEnabled, songModeEnabled, theme1Index, playMode, randomizeTrack, trackMute);
|
||||
@@ -154,17 +161,8 @@ void UIManager::drawMenu(const char* title, const char* items[], int count, int
|
||||
display.print(items[i]);
|
||||
|
||||
if (currentState == UI_MENU_SETUP && i == 1) {
|
||||
display.print(F(": ")); display.print(playMode == MODE_MONO ? "Mono" : "Poly");
|
||||
}
|
||||
if (currentState == UI_MENU_SETUP && i == 2) {
|
||||
display.print(F(": ")); display.print(midiChannel);
|
||||
}
|
||||
if (currentState == UI_MENU_RANDOMIZE && playMode == MODE_POLY && i == 1) {
|
||||
display.print(F(": ")); display.print(randomizeTrack + 1);
|
||||
}
|
||||
if (currentState == UI_MENU_RANDOMIZE && playMode == MODE_POLY && i == 2) {
|
||||
display.print(F(": ")); display.print(trackMute[randomizeTrack] ? F("YES") : F("NO"));
|
||||
}
|
||||
if (currentState == UI_MENU_RANDOMIZE && i >= theme1Index && queuedTheme == (i - theme1Index + 1)) {
|
||||
display.print(F(" [NEXT]"));
|
||||
}
|
||||
@@ -172,12 +170,9 @@ void UIManager::drawMenu(const char* title, const char* items[], int count, int
|
||||
display.print(F(" *"));
|
||||
}
|
||||
if (currentState == UI_MENU_RANDOMIZE) {
|
||||
int track_offset = (playMode == MODE_POLY) ? 2 : 0;
|
||||
if (i == 1 + track_offset) { // Melody
|
||||
if (i == 1) { // Melody
|
||||
display.print(F(": ")); display.print(melodySeed);
|
||||
} else if (i == 2 + track_offset) { // Flavour
|
||||
display.print(F(": ")); display.print(flavourName);
|
||||
} else if (i == 3 + track_offset) { // Scale
|
||||
} else if (i == 2) { // Scale
|
||||
display.print(F(": "));
|
||||
if (numScaleNotes > 0) {
|
||||
const char* noteNames[] = {"C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"};
|
||||
@@ -186,9 +181,12 @@ void UIManager::drawMenu(const char* title, const char* items[], int count, int
|
||||
if (j < min(numScaleNotes, 6) - 1) display.print(F(" "));
|
||||
}
|
||||
}
|
||||
} else if (i == 4 + track_offset) { display.print(F(": ")); display.print(tempo); }
|
||||
else if (i == 5 + track_offset) { display.print(F(": ")); display.print(mutationEnabled ? F("ON") : F("OFF")); }
|
||||
else if (i == 6 + track_offset) { display.print(F(": ")); display.print(songModeEnabled ? F("ON") : F("OFF")); }
|
||||
} else if (i == 3) { display.print(F(": ")); display.print(tempo); }
|
||||
else if (i == 4) { display.print(F(": ")); display.print(songModeEnabled ? F("ON") : F("OFF")); }
|
||||
else if (i == 5) { display.print(F(": ")); display.print(randomizeTrack + 1); }
|
||||
else if (i == 6) { display.print(F(": ")); display.print(trackMute[randomizeTrack] ? F("YES") : F("NO")); }
|
||||
else if (i == 7) { display.print(F(": ")); display.print(flavourName); }
|
||||
else if (i == 8) { display.print(F(": ")); display.print(mutationEnabled ? F("ON") : F("OFF")); }
|
||||
}
|
||||
y += 9;
|
||||
}
|
||||
@@ -219,8 +217,8 @@ void UIManager::updateLeds(const Step sequence[][NUM_STEPS], int playbackStep, b
|
||||
if(playMode == MODE_POLY) {
|
||||
for(int t=0; t<NUM_TRACKS; t++) {
|
||||
for(int s=0; s<NUM_STEPS; s++) {
|
||||
int col = t * 2 + (s / 8);
|
||||
int row = s % 8;
|
||||
int row = t * 2 + (s / 8);
|
||||
int col = s % 8;
|
||||
|
||||
uint32_t color = 0;
|
||||
int note = sequence[t][s].note;
|
||||
|
||||
Reference in New Issue
Block a user