I've been chasing around a seemingly random issue in my live setup where MIDI_DuplicateFilter would suddenly decide to stop accepting specific notes until it's manually reset.
Here's an easy way to trigger the symptoms:
- Put the included MIDI_DuplicateFilter JSFX on a track with MIDI input
- Press a note on the keyboard (don't release it)
- Start transport -> REAPER sends a note off
- Release the note previously held -> another note off is sent
- Current: MIDI_DuplicateFilter won't accept that note anymore
Expected: MIDI_DuplicateFilter ignores the second note off so further note on are accepted
Suggested fix:
Code:
Line 80, original:
tracker[note] -= 1;
Modified:
tracker[note] > 0 ? tracker[note] -= 1;