Skip to content

Commit

Permalink
Bugfix - I think we should not supply values greater than 100 to the …
Browse files Browse the repository at this point in the history
…createRequest() method
  • Loading branch information
christofmuc committed May 28, 2020
1 parent f12cd80 commit cbb6c73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Matrix1000.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,10 @@ namespace midikraft {
std::vector<MidiMessage> result;
jassert(programNumber >= 0 && programNumber < 1000);
uint8 bank = (uint8)(programNumber / 100);
//uint8 num = (uint8)(programNumber % 100);
uint8 num = (uint8)(programNumber % 100);
result.push_back(createBankSelect(MidiBankNumber::fromZeroBase(bank)));
result.push_back(createBankUnlock());
result.push_back(createRequest(SINGLE_PATCH, (uint8) programNumber));
result.push_back(createRequest(SINGLE_PATCH, num));
return result;
}

Expand Down

0 comments on commit cbb6c73

Please sign in to comment.