Browse Source

Merge pull request #620 from progwolff/master

fix #619, wrong assertion on MIDI CC param
tags/v1.9.9
Filipe Coelho GitHub 6 years ago
parent
commit
0a34b680ae
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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