Trying to asynchronously send a MIDI clock message, but the interval is always a bit longer than what I tell it to loop over. I tell it 120 beats per minute, but my MIDI device tells me it's clocking at 114 BPM.
Why is the loop interval not being honored with my code?
For the record, I am trying to wrap my head around asyncio but am obviously not using it correctly. Here is some code I cobbled together from brain/web:
https://gist.github.com/ology/2dc2532617e1ef9149d6620edb78572a
Help? :)