aboutsummaryrefslogtreecommitdiff
path: root/scumm/instrument.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-04-12 22:41:25 +0000
committerEugene Sandulenko2005-04-12 22:41:25 +0000
commit7c831c9c4c555db5d9a39d0d9abeed075a58a5fd (patch)
tree83913443fea2935e0db8df7b9997bd713cc32f2a /scumm/instrument.cpp
parent003b3a3f487500e17788590ea1c5e75b55221765 (diff)
downloadscummvm-rg350-7c831c9c4c555db5d9a39d0d9abeed075a58a5fd.tar.gz
scummvm-rg350-7c831c9c4c555db5d9a39d0d9abeed075a58a5fd.tar.bz2
scummvm-rg350-7c831c9c4c555db5d9a39d0d9abeed075a58a5fd.zip
Patch #1180882 "GM/GS Percussion Remapping"
svn-id: r17569
Diffstat (limited to 'scumm/instrument.cpp')
-rw-r--r--scumm/instrument.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/scumm/instrument.cpp b/scumm/instrument.cpp
index 03145cb6d9..e2d78d815c 100644
--- a/scumm/instrument.cpp
+++ b/scumm/instrument.cpp
@@ -114,6 +114,15 @@ roland_to_gm_map [] = {
// { "trickle4 ", ??? }
};
+const byte Instrument::_gmRhythmMap[35] = {
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 36, 37, 38, 39, 40, 41, 66, 47,
+ 65, 48, 56};
+ // This emulates the percussion bank setup LEC used with the MT-32,
+ // where notes 24 - 34 were assigned instruments without reverb.
+ // It also fixes problems on GS devices that map sounds to these
+ // notes by default.
+
class Instrument_Program : public InstrumentInternal {
private:
byte _program;