summaryrefslogtreecommitdiffstats
path: root/apps/plugins/midi/midiutil.c
diff options
context:
space:
mode:
authorStepan Moskovchenko <stevenm@rockbox.org>2007-10-17 03:48:24 +0000
committerStepan Moskovchenko <stevenm@rockbox.org>2007-10-17 03:48:24 +0000
commitd33645ba137fc6566a953190dcf74c3841bc4d5d (patch)
treed35d56499d6e0331376055be863df3ce23d96370 /apps/plugins/midi/midiutil.c
parent1cc852c34655cd69cfc2d2fa42f31576121f86ed (diff)
downloadrockbox-d33645ba137fc6566a953190dcf74c3841bc4d5d.tar.gz
rockbox-d33645ba137fc6566a953190dcf74c3841bc4d5d.tar.bz2
rockbox-d33645ba137fc6566a953190dcf74c3841bc4d5d.zip
MIDI: Optimize the new pitch bending code for a small speedup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15160 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/midi/midiutil.c')
-rw-r--r--apps/plugins/midi/midiutil.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/midi/midiutil.c b/apps/plugins/midi/midiutil.c
index 8cf8ffcde6..92ab8db8d6 100644
--- a/apps/plugins/midi/midiutil.c
+++ b/apps/plugins/midi/midiutil.c
@@ -25,7 +25,10 @@ int chVol[16] IBSS_ATTR; /* Channel volume */
int chPan[16] IBSS_ATTR; /* Channel panning */
int chPat[16] IBSS_ATTR; /* Channel patch */
int chPW[16] IBSS_ATTR; /* Channel pitch wheel, MSB only */
-int chPBDepth[16] IBSS_ATTR; /* Channel pitch wheel, MSB only */
+int chPBDepth[16] IBSS_ATTR; /* Channel pitch bend depth */
+int chPBNoteOffset[16] IBSS_ATTR; /* Pre-computed whole semitone offset */
+int chPBFractBend[16] IBSS_ATTR; /* Fractional bend applied to delta */
+
struct GPatch * gusload(char *);
struct GPatch * patchSet[128];