aboutsummaryrefslogtreecommitdiff
path: root/sound/mididrv.cpp
diff options
context:
space:
mode:
authorJamieson Christian2002-10-14 16:19:19 +0000
committerJamieson Christian2002-10-14 16:19:19 +0000
commit40cf2ad6392b75afa2c361988c7ebed85809afc9 (patch)
tree429008b44ce25a74dc68725644aa6b41d3f9badb /sound/mididrv.cpp
parente8f3f1706755f8da74afb85898c1628ca466b6a9 (diff)
downloadscummvm-rg350-40cf2ad6392b75afa2c361988c7ebed85809afc9.tar.gz
scummvm-rg350-40cf2ad6392b75afa2c361988c7ebed85809afc9.tar.bz2
scummvm-rg350-40cf2ad6392b75afa2c361988c7ebed85809afc9.zip
Removed hard-coded pitch bend setup, now being handled on-the-fly in imuse.cpp
svn-id: r5146
Diffstat (limited to 'sound/mididrv.cpp')
-rw-r--r--sound/mididrv.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/sound/mididrv.cpp b/sound/mididrv.cpp
index 1c6a5b333b..87fdcd8c88 100644
--- a/sound/mididrv.cpp
+++ b/sound/mididrv.cpp
@@ -109,19 +109,6 @@ int MidiDriver_WIN::open(int mode)
MMRESULT res = midiOutOpen((HMIDIOUT *) & _mo, MIDI_MAPPER, NULL, NULL, 0);
if (res != MMSYSERR_NOERROR)
check_error(res);
-
- // Send initial pitch bend sensitivity values for +/- 12 semitones.
- // For information on control change registered parameters,
- // which includes the Pitch Bend sensitivity settings,
- // visit http://www.midi.org/about-midi/table3.htm,
- // Table 3a.
- int chan;
- for (chan = 0; chan < 16; ++chan) {
- send(( 0 << 16) | (101 << 8) | (0xB0 | chan));
- send(( 0 << 16) | (100 << 8) | (0xB0 | chan));
- send((12 << 16) | ( 6 << 8) | (0xB0 | chan));
- send(( 0 << 16) | ( 38 << 8) | (0xB0 | chan));
- } // next for
} else {
/* streaming mode */
MIDIPROPTIMEDIV mptd;
@@ -816,7 +803,7 @@ void MidiDriver_QT::send(uint32 b)
case 0xE0:{ // Pitch bend
// QuickTime specifies pitchbend in semitones, using 8.8 fixed point values;
- // but iMuse sends us the pitch bend data as 0-32768. which has to be mapped
+ // but iMuse sends us the pitch bend data as 0-16383. which has to be mapped
// to +/- 12 semitones. Based on this, we first center the input data, then
// multiply it by a factor. If all was right, the factor would be 3/8, but for
// mysterious reasons the actual factor we have to use is more like 1/32 or 3/64.