Skip to content

Commit

Permalink
extend arp range if midi sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Apr 26, 2024
1 parent 15ca7bb commit d7d39da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/MEGAfm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ void enterSetup() {
}

void setup() {

arpMidiSpeedPending=1;
lastSentCC[0] = 255;

fillAllLfoTables();
Expand Down
4 changes: 2 additions & 2 deletions src/pots.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -830,8 +830,8 @@ void movedPot(byte number, byte data, bool isMidi) {
fmBase[46] = data;
updateFMifNecessary(46);
if (sync) {
ledNumber(kArpRateDisplay[data >> 5]);
arpMidiSpeedPending = data >> 5;
ledNumber(kArpRateDisplay[map(data, 0, 255, 0, 10)]);
arpMidiSpeedPending = map(data, 0, 255, 0, 10);
} else {
if (!isMidi)
ledNumber(data >> 2);
Expand Down

0 comments on commit d7d39da

Please sign in to comment.