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/synth.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/plugins/midi/synth.c') 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++) { -- cgit v1.1