arduino-midi icon indicating copy to clipboard operation
arduino-midi copied to clipboard

Support for sending/receiving MIDI clock?

Open Hans0lo opened this issue 2 years ago • 4 comments

Hi Phil, first: thnx for your work!

I wonder, as I searched for the word 'clock' here: https://pschatzmann.github.io/arduino-midi/html/annotated.html

but it was not found, so I assume that this library does not support sending/receiving clock?

Hans0lo avatar Jan 19 '23 22:01 Hans0lo

No, so far I did not have any need to support any System messages. However it should not be too difficult to add...

pschatzmann avatar Jan 19 '23 23:01 pschatzmann

thnx for the speedy reply - can you eventually give me some hints on how/where in the package system messages should be added ? (i do know MIDI specs quite well, but am not too experienced in c++ coding.... so i feel a bit overwhelmed when i try to find the right place in all of the modules that are part of this lib)

Hans0lo avatar Jan 20 '23 10:01 Hans0lo

You would extend MidiCommon with the system messages e.g.

  • systemTimingClock()
  • systemStart()
  • systemEnd()
  • etc

You would also extend the MidiParser class to handle

  • onSystemTimingClock()
  • onSystemStart()
  • onSystemEnd() -etc

pschatzmann avatar Jan 20 '23 13:01 pschatzmann

thnx a lot Phil!

Hans0lo avatar Jan 20 '23 13:01 Hans0lo