fix MIDI clock/time using too much CPU

This commit is contained in:
tildearrow 2023-07-05 23:55:50 -05:00
parent 5d015ae0ed
commit 59e93892dd
1 changed files with 2 additions and 6 deletions

View File

@ -1980,14 +1980,10 @@ void DivEngine::nextBuf(float** in, float** out, int inChans, int outChans, unsi
} else { } else {
// 3. run MIDI clock // 3. run MIDI clock
int midiTotal=MIN(cycles,runLeftG); int midiTotal=MIN(cycles,runLeftG);
for (int i=0; i<midiTotal; i++) { runMidiClock(midiTotal);
runMidiClock();
}
// 4. run MIDI timecode // 4. run MIDI timecode
for (int i=0; i<midiTotal; i++) { runMidiTime(midiTotal);
runMidiTime();
}
// 5. tick the clock and fill buffers as needed // 5. tick the clock and fill buffers as needed
if (cycles<runLeftG) { if (cycles<runLeftG) {