Browse Source

Fix fluid_synth_pitch_bend parameters, closes #108

tags/1.9.4
falkTX 11 years ago
parent
commit
1eb2b8bbd2
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      source/backend/plugin/FluidSynthPlugin.cpp

+ 3
- 3
source/backend/plugin/FluidSynthPlugin.cpp View File

@@ -1344,9 +1344,9 @@ public:
}
else if (MIDI_IS_STATUS_PITCH_WHEEL_CONTROL(status) && (pData->options & PLUGIN_OPTION_SEND_PITCHBEND) != 0)
{
const uint8_t lsb = midiEvent.data[1];
const uint8_t msb = midiEvent.data[2];
const int value = ((msb << 7) | lsb) - 8192;
const uint8_t lsb = midiEvent.data[1];
const uint8_t msb = midiEvent.data[2];
const int value = ((msb << 7) | lsb);

fluid_synth_pitch_bend(fSynth, channel, value);
}


Loading…
Cancel
Save