-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to send a midi out clock? #89
Comments
I don't. The MIDI spec is pretty stringent on timing, so an OS-agnostic fast & accurate timer is required. When I first added this part, there wasn't anything available in C++ without having to do a bunch of platform-specific stuff but now there should be. The protocol is pretty simple, so it would be adding a function to take the time and output an array of bytes for the timer to send out. The best solution is probably to have the timer run in it's own thread if it is not callback-based. |
Hey @danomatika I just tested to receive play/stop and beat ticks and tempo to Ableton Live (Windows 11 & macOS / OF 0.12.0) and it worked! I did the code assisted with Anthropic Claude, so I am not sure if that is optimal or redundant. I posted a repo to check by yourself if you like. |
oops! bad news. |
Hey @danomatika ,
I checked your MIDI input clock receiver example and it works fine.
Do you have some implementation/example of sending a MIDI clock to a MIDI Out port?
I would like to integrate here https://github.com/moebiussurfing/ofxBeatClock.
Any help is appreciated.
Regards
The text was updated successfully, but these errors were encountered: