I am making a MIDI to SysEx converter with an arduino board. I am having a bit of trouble with the math of the whole thing. I am convertering CC messages (3 bytes) to a SysEx message (10 bytes).
Now MIDI is 31250 bauds, which is roughly 4kb/second. So how much MIDI CC to SysEx can I convert per second without the Serial output buffer filling up? :confused:
Also since I want to reach the maximum conversion speed available, how long to the Serial.write() functions take? As it stands now my main loop runs at about 20 000 cycles per second, well above the 4000 cycles per second needed for maximum data transfer. However, if I do 10 serial.writes per loop, will it significantly lower the speed of my code?