I have a script that receives midi events sent from music software through Hairless midi (midi-to-serial converter) and into the Arduino. The incoming midi events aren’t all that much data, you can easily see them scrolling through at a fairly leisurely rate. Should I use the lowest possible baud rate for the serial connection - does it eat more Arduino resources to use a high baud rate? I’m guessing yes…
There also is a midi library for wireless that works on wemos d1 . Just in case it could be interesting for you
If 9600 baud works and you think it’s fast enough then go with it. I also think it would be perfectly fine to use something higher like 57600 if you wanted. And then if for some reason the amount of MIDI data being received became higher it would already be setup to handle it.
Phil S. - that’s worth knowing. At the moment all this is happening within my laptop, but that of course means it has to be directly connected to the Arduino, which isn’t all that practical.
I was just working on the assumption that 57600 baud would mean that the Arduino is checking/clocking/reading bits 57600 times a second, while at 9600 baud its only 9600 times a second, therefore 9600 baud consumes significantly less processing power. So running at the slowest baud rate you can get away with is a good thing…?
@dimwoo, exactly check out this: https://github.com/lathoub/Arduino-AppleMidi-Library
if you need midi clock running, there is a fork you can use, i can send you what i have done with it if you find any trouble getting it to run.
Thanks Phil, that’s all a bit over my head! Didn’t know what you meant by “fork” but googled it. I’d be interested to see your script 