summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/midiutil.c
diff options
context:
space:
mode:
authorStepan Moskovchenko <stevenm@rockbox.org>2007-10-21 19:47:33 +0000
committerStepan Moskovchenko <stevenm@rockbox.org>2007-10-21 19:47:33 +0000
commit47d8323deb8c7351c66a89599f15b60e06a5b814 (patch)
treef046f7e1786930311b76a65b8a014ce7d1ee3a13 /apps/plugins/midi/midiutil.c
parent6fac8fcc93fa1fc8a6f288f57258f1c8443cf9db (diff)
downloadrockbox-47d8323deb8c7351c66a89599f15b60e06a5b814.tar.gz
rockbox-47d8323deb8c7351c66a89599f15b60e06a5b814.zip
MIDI: Fix ringing/beeks in music caused by improper parsing of some pitch bend events.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15252 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/midi/midiutil.c')
-rw-r--r--apps/plugins/midi/midiutil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/midi/midiutil.c b/apps/plugins/midi/midiutil.c
index 92ab8db8d6..65ba9c8989 100644
--- a/apps/plugins/midi/midiutil.c
+++ b/apps/plugins/midi/midiutil.c
@@ -28,7 +28,8 @@ int chPW[16] IBSS_ATTR; /* Channel pitch wheel, MSB only */
28int chPBDepth[16] IBSS_ATTR; /* Channel pitch bend depth */ 28int chPBDepth[16] IBSS_ATTR; /* Channel pitch bend depth */
29int chPBNoteOffset[16] IBSS_ATTR; /* Pre-computed whole semitone offset */ 29int chPBNoteOffset[16] IBSS_ATTR; /* Pre-computed whole semitone offset */
30int chPBFractBend[16] IBSS_ATTR; /* Fractional bend applied to delta */ 30int chPBFractBend[16] IBSS_ATTR; /* Fractional bend applied to delta */
31 31unsigned char chLastCtrlMSB[16]; /* MIDI regs, used for Controller 6. */
32unsigned char chLastCtrlLSB[16]; /* The non-registered ones are ignored */
32 33
33struct GPatch * gusload(char *); 34struct GPatch * gusload(char *);
34struct GPatch * patchSet[128]; 35struct GPatch * patchSet[128];