From a4e3c2e550de1366a67e1db932b2dd29ebc312fb Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 26 Jan 2021 11:46:31 -0500 Subject: [PATCH] cmDspBuiltIn.c : Changed _cmDspMidOutRecv() to not sleep between all-note-off transmissions --- src/dsp/cmDspBuiltIn.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dsp/cmDspBuiltIn.c b/src/dsp/cmDspBuiltIn.c index dc48465..0e74855 100644 --- a/src/dsp/cmDspBuiltIn.c +++ b/src/dsp/cmDspBuiltIn.c @@ -911,7 +911,10 @@ cmDspRC_t _cmDspMidiOutRecv(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_t { cmMpDeviceSend(p->devIdx,p->portIdx,kCtlMdId+i,121,0); // reset all controllers cmMpDeviceSend(p->devIdx,p->portIdx,kCtlMdId+i,123,0); // turn all notes off - cmSleepMs(15); + //cmSleepMs(15); this delay was causing audio to glitch badly + // if a delay is necessary make it shorter and only send it on channels where + // previous note-ons were issued. + } } break;