diff options
author | Tim E. Real <termtech@rogers.com> | 2011-05-14 03:14:33 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2011-05-14 03:14:33 +0000 |
commit | cce71cb04c36b199b079faa8f6306e43e9605297 (patch) | |
tree | 3c37f0769d174f6b471346cce82c40dac9979c44 /muse2/muse | |
parent | d2f37049cf0b41daa25d1a698c3010a278554956 (diff) |
Added GM drums patch in MidiInstrument::populatePatchPopup() for GM songs on ch 10.
Diffstat (limited to 'muse2/muse')
-rw-r--r-- | muse2/muse/instruments/minstrument.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/muse2/muse/instruments/minstrument.cpp b/muse2/muse/instruments/minstrument.cpp index 9e52498f..4fde7bf3 100644 --- a/muse2/muse/instruments/minstrument.cpp +++ b/muse2/muse/instruments/minstrument.cpp @@ -891,7 +891,13 @@ void MidiInstrument::populatePatchPopup(QMenu* menu, int chan, MType songType, b case MT_GS: mask = 2; break; case MT_GM: if(drumchan) + { + int id = (0xff << 16) + (0xff << 8) + 0x00; // First patch + QAction* act = menu->addAction(gmdrumname); + //act->setCheckable(true); + act->setData(id); return; + } mask = 1; break; case MT_UNKNOWN: mask = 7; break; |