fix MIDI input not working on ins load preview

issue #2561
This commit is contained in:
tildearrow 2025-06-24 03:34:05 -05:00
parent 38e4245ee0
commit 6d7a354531
3 changed files with 11 additions and 11 deletions

View file

@ -2252,7 +2252,7 @@ void DivEngine::nextBuf(float** in, float** out, int inChans, int outChans, unsi
}
}
int ins=-1;
if ((ins=midiCallback(msg))!=-2) {
if ((ins=midiCallback(msg))!=-3) {
int chan=msg.type&15;
switch (msg.type&0xf0) {
case TA_MIDI_NOTE_OFF: {