Fix drum sound
This commit is contained in:
parent
d1c21f8934
commit
a3a7693567
1 changed files with 4 additions and 1 deletions
|
@ -1246,7 +1246,10 @@ void setTrackInfo(MidiType midiType, MTrack &mt)
|
|||
part->setLongName(mt.name);
|
||||
part->setPartName(part->longName().toPlainText());
|
||||
part->setMidiChannel(mt.mtrack->outChannel());
|
||||
part->setMidiProgram(mt.program & 0x7f); // only GM
|
||||
int bank = 0;
|
||||
if (mt.mtrack->drumTrack())
|
||||
bank = 128;
|
||||
part->setMidiProgram(mt.program & 0x7f, bank); // only GM
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue