Skip to content

Commit

Permalink
use direct member
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Dec 6, 2024
1 parent 40d89d9 commit a207e7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/importexport/mei/internal/meiexporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,9 @@ bool MeiExporter::writeInstrDef(pugi::xml_node node, const Part* part)
return false;
}

const int midiProgram = part->instrument()->channel(0)->program();
const int midiProgram = part->midiProgram();
// const int midiChannel = part->midiChannel();
// const int midiPort = part->midiPort();

if (midiProgram < 0) {
return false;
Expand Down

0 comments on commit a207e7c

Please sign in to comment.