Dear forum,
I'm trying to write my first external which is intended to synchronize a sequencer patch to ardour, via jack_transport.
My sequencer has a timecode granularity of 240 tick per beat, so I'd like the external to check if audio frames match a timecode, and if yes, to send this timecode through an outlet.
I started by modifying [jackclock] to get the first frame number of each audio cycle.
http://www.nicolasbouillot.net/blog.php?id=11
I have an equation for converting frame numbers to timecodes, function of sample rate, bpm and granularity, as well as a matching condition in case the timecode would fall between two frames.
What I need help for is figuring out how to, cycle by cycle, for each frame matching a timecode, output the timecodes in synchronization with their frames through a non-signal outlet.
In other words, how can I make an external output float messages at timings function of sample indexes in a cycle ? Is this even possible ?
Thanks for any clue.