Browse Source

fix #619, wrong assertion on MIDI CC param

tags/v1.9.9
Julian Wolff 6 years ago
parent
commit
6c12b091de
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      source/backend/engine/CarlaEngineData.cpp

+ 1
- 1
source/backend/engine/CarlaEngineData.cpp View File

@@ -32,7 +32,7 @@ uint8_t EngineControlEvent::convertToMidiData(const uint8_t channel, uint8_t dat
break;

case kEngineControlEventTypeParameter:
CARLA_SAFE_ASSERT_RETURN(param >= MAX_MIDI_VALUE, 0);
CARLA_SAFE_ASSERT_RETURN(param < MAX_MIDI_VALUE, 0);

data[0] = static_cast<uint8_t>(MIDI_STATUS_CONTROL_CHANGE | (channel & MIDI_CHANNEL_BIT));



Loading…
Cancel
Save