[LAU] MIDI clock & sync

Robin Gareus robin at gareus.org
Fri Jul 31 11:38:35 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Josh Lawrence wrote:
> Hi everyone,
> 
> Atte's recent thread about sync got me to thinking about MIDI clock.
> Is there a simple app out there that will generate MIDI clock at a
> tempo can can be defined?  If not, would one of you
> scripting/programming wizards be willing (or able, if what I'm asking
> is possible) to drum something up?

Have a look at send_mtc_sx() in ltc2amidi.c of
http://rg42.org/_media/wiki/ltc2amidi-0.1.1.tar.gz

That code reads LTC timecode from a JACK audio-port converts it to SMPTE
and sends that as MIDI-clock via ALSA-MIDI.

I've never finished it (latency-compensation etc) but Nathael Oliz and
Pau Arumi continued hacking on it for some demostration back in April.
They're subscribing to this list and may know more about it.

For testing there's a "fake the LTC" executable in ltc2amidi:
Launch ardour2, add some audio and set it to slave to MTC. Look up the
ardour midi-port (here 131).  Launch `./fake2amidi 131:0` and ardour
should play 10 seconds starting at 00:00:15.0.. (hardcoded in fake.c)

good luck,
robin

PS. since it's not completed, ltc2amidi is not in the ltcsmpte.sf.net
SVN repository, but you can get it from git://rg42.org/ltcsmpte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkpzD/oACgkQeVUk8U+VK0L/AgCfY+5idngSu5eGQjooim+NmVfU
HJEAoIw01XCx7eFP/dX54rqjL0WGyHWT
=LMNQ
-----END PGP SIGNATURE-----



More information about the Linux-audio-user mailing list