Skip to content

Commit

Permalink
Make sure to store unknown bank as NULL in the database, and not as 0…
Browse files Browse the repository at this point in the history
…. And make sure to not call numberFromDump() for non single program dumps.
  • Loading branch information
christofmuc committed Nov 2, 2024
1 parent 2631a43 commit ff5db73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MidiKraft
3 changes: 3 additions & 0 deletions adaptations/GenericProgramDumpCapability.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ namespace knobkraft {

MidiProgramNumber GenericProgramDumpCapability::getProgramNumber(const std::vector<MidiMessage>& message) const
{
if (!isSingleProgramDump(message)) {
return MidiProgramNumber::invalidProgram();
}
py::gil_scoped_acquire acquire;
if (me_->pythonModuleHasFunction("numberFromDump")) {
try {
Expand Down

0 comments on commit ff5db73

Please sign in to comment.