Hey,
I've got a DUY I wrote which translates CC to SysEx for my MKS-80, but find if I do filter sweeps, the amount of SysEx messages being send out flood the MIDI channel, and then cause a backlog, slowing down the note messages.
I wondered if there is a way anyone can think of of putting in a waittime or somesuch into the loop so that it only triggers 1 SysEx message every 10th of a second or so?
I tried using millis() command like this, but it doesn't seem to make any difference (I've even tried very last numbers, so think it's ignoring it)
long miditimer = millis();
bool RK002_onControlChange(byte channel, byte ccnumber, byte ccvalue)
{
if (millis() - miditimer >= 100)
{
sendRolandSyx(1,ccnumber,ccvalue);
return false;
miditimer = millis();
return true;
}
}
Any ideas what I might be doing wrong?
Thanks in advance!