summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/synth.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/synth.c
parent1cc852c34655cd69cfc2d2fa42f31576121f86ed (diff)
downloadrockbox-d33645ba137fc6566a953190dcf74c3841bc4d5d.zip
rockbox-d33645ba137fc6566a953190dcf74c3841bc4d5d.tar.gz
rockbox-d33645ba137fc6566a953190dcf74c3841bc4d5d.tar.bz2
rockbox-d33645ba137fc6566a953190dcf74c3841bc4d5d.tar.xz
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/synth.c')
-rw-r--r--apps/plugins/midi/synth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/midi/synth.c b/apps/plugins/midi/synth.c
index f0fa93d..9ec5580 100644
--- a/apps/plugins/midi/synth.c
+++ b/apps/plugins/midi/synth.c
@@ -66,6 +66,8 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig)
chPat[a]=0; /* Ac Gr Piano */
chPW[a]=256; /* .. not .. bent ? */
chPBDepth[a]=2; /* Default bend value is 2 */
+ chPBNoteOffset[a]=0; /* No offset */
+ chPBFractBend[a]=65536; /* Center.. no bend */
}
for(a=0; a<128; a++)
{