diff options
| author | Jared DeCook <jared@shapingthesilence.com> | 2023-11-25 16:50:40 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2023-11-25 16:50:40 -0500 |
| commit | 477302a623d6bd9c2e6c4bfabae11e540c3049b9 (patch) | |
| tree | 0c221dff60329133effb9b4debde37de6fd17d10 /HexBoard_V1.1.ino | |
| parent | fa0d831738e003b1403197fcc025465bf68255dc (diff) | |
| download | HexBoard-477302a623d6bd9c2e6c4bfabae11e540c3049b9.tar.gz | |
Fix scales when transposed
Diffstat (limited to 'HexBoard_V1.1.ino')
| -rw-r--r-- | HexBoard_V1.1.ino | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/HexBoard_V1.1.ino b/HexBoard_V1.1.ino index 92efbba..cfe2393 100644 --- a/HexBoard_V1.1.ino +++ b/HexBoard_V1.1.ino @@ -492,14 +492,14 @@ GEMItem menuItemLighting("Lighting:", lightMode, selectLighting); int buzzer = 0; // For enabling built-in buzzer for sound generation without a computer #define BUZZER_ARP_UP 2 #define BUZZER_ARP_DOWN 3 -SelectOptionInt selectBuzzerOptions[] = {{"Off", 0}, {"Mono", 1}, {"Arp Up", BUZZER_ARP_UP}, {"Arp Down", BUZZER_ARP_DOWN}}; +SelectOptionInt selectBuzzerOptions[] = {{"Off", 0}, {"Mono", 1}, {"Arp Up", BUZZER_ARP_UP}, {"Arp Dwn", BUZZER_ARP_DOWN}}; GEMSelect selectBuzzer(sizeof(selectBuzzerOptions)/sizeof(SelectOptionInt), selectBuzzerOptions); GEMItem menuItemBuzzer("Buzzer:", buzzer, selectBuzzer); // For use when testing out unfinished features GEMItem menuItemTesting("Testing", menuPageTesting); boolean release = true; // Whether this is a release or not -GEMItem menuItemVersion("V0.5.1 ", release, GEM_READONLY); +GEMItem menuItemVersion("V0.5.2 ", release, GEM_READONLY); void sequencerSetup(); //Forward declaration // For enabling basic sequencer mode - not complete GEMItem menuItemSequencer("Sequencer:", sequencerMode, sequencerSetup); @@ -924,6 +924,7 @@ bool isNotePlayable(byte note) { } // Used by things not affected by scaleLock bool isNoteLit(byte note) { + note = (note - key + transpose) % 12; if(tones != 12 || (*selectedScale)[note%12]){ return true; } |
