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:
gist.github.com/ology/2dc25326…
Help? 😀
asyncio interval not firing exactly on time?
asyncio interval not firing exactly on time? GitHub Gist: instantly share code, notes, and snippets.Gist

Glyph
in reply to Gene Boggs • • •Welcome to Fritter’s documentation! — Fritter documentation
fritter.readthedocs.ioGene Boggs
Unknown parent • • •Glyph
in reply to Gene Boggs • • •Gene Boggs
Unknown parent • • •Glyph
in reply to Gene Boggs • • •Gene Boggs
in reply to Glyph • • •Glyph
in reply to Gene Boggs • • •Get more from Glyph on Patreon
PatreonGene Boggs
in reply to Glyph • • •