Fix drum sound

This commit is contained in:
Andrey M. Tokarev 2013-08-11 15:42:03 +04:00
parent d1c21f8934
commit a3a7693567

View file

@ -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
}
}