Removed the assertion since it may create issues when
missing notes
This commit is contained in:
parent
0d0cf64405
commit
644b678880
1 changed files with 2 additions and 2 deletions
|
|
@ -25,8 +25,8 @@ void sfz::MidiState::noteOffEvent(int noteNumber, uint8_t velocity [[maybe_unuse
|
||||||
ASSERT(velocity >= 0 && velocity <= 127);
|
ASSERT(velocity >= 0 && velocity <= 127);
|
||||||
|
|
||||||
if (noteNumber >= 0 && noteNumber < 128) {
|
if (noteNumber >= 0 && noteNumber < 128) {
|
||||||
|
if (activeNotes > 0)
|
||||||
activeNotes--;
|
activeNotes--;
|
||||||
ASSERT(activeNotes >= 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue