====== gjvideotimeline and ardour ====== I've succeeded to "overlay" a video-timeline always-on-top over the [[http://ardour.org/|ardour]] editor window synchronizing ardour's canvas zoom level via OSC. run [[http://gjvidtimeline.sf.net|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. ===== Screenshots ===== {{ oss:gjvt:box_s.png}} 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. * [[screenshots|still pictures]] * [[animated|animated gifs]] ===== ardour OSC patch ===== * {{oss:gjvt:ardour-svn1686-osccanvas_6.diff|ardour-svn1686 OSC Canvas (v6)}} | same as below, but with a few Hunks offset. * {{oss:gjvt:ardour-svn1640-osccanvas_6.diff|ardour-svn1640 OSC Canvas (v6)}} | [[http://gjvidtimeline.sourceforge.net/src/ardour-svn1640-OSCcanvas_6.diff|sourceforge mirror (v6)]] - added Config & En/Disable via Options-menu **"SendOSC"** * {{oss:gjvt:ardour-svn1640-osccanvas_4.diff|ardour-svn1640 OSC Canvas (v4)}} | [[http://gjvidtimeline.sourceforge.net/src/ardour-svn1640-OSCcanvas_4.diff|sourceforge mirror (v4)]] - hardcoded, always on 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 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); } ===== Building Ardour with the patch ===== * read http://ardour.org/building svn co -r 1640 http://subversion.ardour.org/svn/ardour2/trunk ardour2 cd ardour2 patch -p0 < .../ardour-svn1640-osccanvas_6.diff scons