if(($ACT == 'edit' || $ACT == 'preview') && $INFO['editable']){ ?> } else { ?> } ?>
I've succeeded to “overlay” a video-timeline always-on-top over the ardour editor window synchronizing ardour's canvas zoom level via OSC.
run gjvidtimeline version >= 0.1.1 (svn 10) with -o 5280
command line argument (OSC server). connect gjvidtimeline to JACK and select Follow: osc
in gjvt's task-bar. - choose “always-on-top” from the windowmanager and adjust the window over the ardour-edit-canvas.
Note: ardours playhead is in sync with the (red+green=yellow) start/end location markers in gjvidtimeline. So are the start/end positions of the canvas.
simple patch to outline the idea (v1):
. --- gtk2_ardour/editor_canvas.cc (revision 1633) . +++ gtk2_ardour/editor_canvas.cc (working copy) @@ -703,6 +703,7 @@ return FALSE; } +#include <lo/lo.h> void Editor::canvas_horizontally_scrolled () @@ -724,5 +725,9 @@ update_fixed_rulers (); tempo_map_changed (Change (0), !_dragging_hscrollbar); + //printf("DEBUG: hscroll! %lu %lu\n",(long unsigned) leftmost_frame,(long unsigned) rightmost_frame); + lo_address a= lo_address_new ("localhost", "5280"); + lo_send(a,"/ardour2/info/canvas","ii",(unsigned long) leftmost_frame, (unsigned long) rightmost_frame); + lo_address_free(a); }
svn co -r 1640 http://subversion.ardour.org/svn/ardour2/trunk ardour2 cd ardour2 patch -p0 < .../ardour-svn1640-osccanvas_6.diff scons