RemoteVstPlugin: fixed handling of MIDI pitch bend events

Fix a regression introduced with commit 94f991848e.

Closes #172.
This commit is contained in:
Tobias Doerffel
2014-01-30 00:00:44 +01:00
parent 9852cb9a57
commit 0ff636b363

View File

@@ -848,8 +848,8 @@ void RemoteVstPlugin::processMidiEvent( const MidiEvent& event, const f_cnt_t of
switch( event.type() )
{
case MidiPitchBend:
vme.midiData[1] = event.param( 0 ) & 0x7f;
vme.midiData[2] = event.param( 1 ) >> 7;
vme.midiData[1] = event.pitchBend() & 0x7f;
vme.midiData[2] = event.pitchBend() >> 7;
break;
// TODO: handle more special cases
default: