Re: [LAD] SMPTE and jackd

From: Robin Gareus <robin@email-addr-hidden>
Date: Tue May 08 2012 - 17:20:00 EEST

On 05/08/2012 04:11 PM, Egor Sanin wrote:
> On 5/8/12, Robin Gareus <robin@email-addr-hidden> wrote:
>> s/drop/skip/
> Yes, correct.
>
>
>> JACK-transport timecode (as returned by jack_transport_query())
>> increases in steps of the period size. It depends on the application
>> what to make with this.
> Yes, exactly, see below.
>
>
>> jack_frame_time() OTOH estimates the time and includes the offset
>> jack_frames_since_cycle_start(); but I don't know how accurate this is.
> Yeah, I think it's best to work with jack frames as returned by
> jack_transport_query().
>
>
>> Where does the SMPTE come into play? MTC?
> Yes, I'm writing a jack transport to MTC converter for syncing some
> things. It's embarrassingly infantile code at the moment, but I'm
> working on it, it's also my first jack program. It displays SMPTE
> time in a console at the moment.
> http://sourceforge.net/projects/jackmtc/

FWIW, libltcsmpte.sf.net includes two tools in the example-code section
that create MTC (both ALSA-MIDI:jack2amidi as well as JACK-MIDI:
jack2jmidi) from jack-transport:
https://ltcsmpte.svn.sourceforge.net/svnroot/ltcsmpte/ltc2amidi/trunk/

They are - however - skipping frames if the JACK period-size large.

> I know there's MTC code in xjadeo (and qtractor or some other DAWs, I
> think), but I want a standalone console tool. Admittedly, I haven't
> looked at xjadeo code in detail, I'm trying to wrap my head around the
> concepts first.
>
> Thanks.
> _______________________________________________
> Linux-audio-dev mailing list
> Linux-audio-dev@email-addr-hidden
> http://lists.linuxaudio.org/listinfo/linux-audio-dev

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Tue May 8 20:15:04 2012

This archive was generated by hypermail 2.1.8 : Tue May 08 2012 - 20:15:04 EEST