From d33645ba137fc6566a953190dcf74c3841bc4d5d Mon Sep 17 00:00:00 2001 From: Stepan Moskovchenko Date: Wed, 17 Oct 2007 03:48:24 +0000 Subject: 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 --- apps/plugins/midi/midiutil.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/plugins/midi/midiutil.c') diff --git a/apps/plugins/midi/midiutil.c b/apps/plugins/midi/midiutil.c index 8cf8ffc..92ab8db 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]; -- cgit v1.1