[sdiy] MIDI Clock sync advice

Roman Sowa modular at go2.pl
Tue Mar 12 09:28:02 CET 2024

Well said.
And it's pretty easy to do, as MIDI clock message has no dependencies at 
all, it can even go between bytes of single note message. Just look for 
F8 in UART register and bam!

I'm a bit surprised that such powerfull processors as used in arduinos 
can't handle increased traffic, while everything needed to be done in 
any MIDI receiver can be easily handled within one byte transmission, 
that is 0.3ms. OTOH I don't use arduinos or libraries so what do I know.


W dniu 2024-03-11 o 20:58, Gordonjcp pisze:
> On Fri, Mar 08, 2024 at 06:46:35PM -0500, Benjamin Tremblay via Synth-diy wrote:
>> This is inspiring.
>> I tried a number of ideas using arduino mega and teensy. But I was trying to get a clock from a Boss DR-202 playing one of the Latin presets and it was just spraying out 32nd note rolls with unfiltered CC messages and yes, the arduino midi buffer got twerked.
>> As always, really interesting discussion here, thanks.
>> Benjamin Tremblay
> Avoid using the Arduino libraries, they're painfully slow because they're layer upon layer upon layer of redirection and shimming and footering and faffing.
> Handle the MIDI buffer yourself - handle the serial interrupt yourself. Handle 0xF8 as the very first thing you check for on receiving a MIDI byte.

More information about the Synth-diy mailing list