In this example, we'll synchronize Magenta with a DAW using a MIDI clock and transport (start, stop, and reset) information. The MIDI clock is one of the oldest and more popular ways of synchronizing devices, which is available for pretty much every instrument and music software.
We'll be giving the example in Ableton Live, but you can also try this in any DAW that has MIDI clock functionality.
To sync our Magenta program to Ableton Live, we'll launch a metronome thread that wakes up on every beat and sends a clock message: ...