Patch from Pete Goodeve (ticket #7581): MIDI Pitchbend scaled wrongly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41777 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
abed26b20a
commit
d61187a1f3
@ -356,7 +356,8 @@ BSoftSynth::PitchBend(uchar channel, uchar lsb, uchar msb, uint32 time)
|
|||||||
if (InitCheck()) {
|
if (InitCheck()) {
|
||||||
snooze_until(MAKE_BIGTIME(time), B_SYSTEM_TIMEBASE);
|
snooze_until(MAKE_BIGTIME(time), B_SYSTEM_TIMEBASE);
|
||||||
// fluid_synth only accepts an int
|
// fluid_synth only accepts an int
|
||||||
fluid_synth_pitch_bend(fSynth, channel - 1, ((uint32)(msb & 0x7f) << 8) | (lsb & 0x7f));
|
fluid_synth_pitch_bend(fSynth, channel - 1,
|
||||||
|
((uint32)(msb & 0x7f) << 7) | (lsb & 0x7f));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user