diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2016-01-16 20:33:04 -0600 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-01-18 18:24:14 +0100 |
commit | c5b93e2a019193f4aec47191b24e37e6ffef99b3 (patch) | |
tree | 7330c0edb9aaeb2ca31bb9a008eefe5ecbdae2f5 /libs/surfaces/osc | |
parent | 27d82af077a9daf8bd9a2c7072b81da30a8ece20 (diff) |
track scrolling and zooming
Diffstat (limited to 'libs/surfaces/osc')
-rw-r--r-- | libs/surfaces/osc/osc.cc | 10 | ||||
-rw-r--r-- | libs/surfaces/osc/osc.h | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index 9dd0bc5144..b6fd8727a0 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -389,6 +389,12 @@ OSC::register_callbacks() REGISTER_CALLBACK (serv, "/ardour/zoom_5_min", "", zoom_5_min); REGISTER_CALLBACK (serv, "/ardour/zoom_10_min", "", zoom_10_min); REGISTER_CALLBACK (serv, "/ardour/zoom_to_session", "", zoom_to_session); + REGISTER_CALLBACK (serv, "/ardour/temporal_zoom_in", "f", temporal_zoom_in); + REGISTER_CALLBACK (serv, "/ardour/temporal_zoom_out", "f", temporal_zoom_out); + REGISTER_CALLBACK (serv, "/ardour/scroll_up_1_track", "f", scroll_up_1_track); + REGISTER_CALLBACK (serv, "/ardour/scroll_dn_1_track", "f", scroll_dn_1_track); + REGISTER_CALLBACK (serv, "/ardour/scroll_up_1_page", "f", scroll_up_1_page); + REGISTER_CALLBACK (serv, "/ardour/scroll_dn_1_page", "f", scroll_dn_1_page); /* @@ -446,8 +452,12 @@ OSC::register_callbacks() REGISTER_CALLBACK (serv, "/ardour/pushbutton/zoom_5_min", "f", zoom_5_min); REGISTER_CALLBACK (serv, "/ardour/pushbutton/zoom_10_min", "f", zoom_10_min); REGISTER_CALLBACK (serv, "/ardour/pushbutton/zoom_to_session", "f", zoom_to_session); + REGISTER_CALLBACK (serv, "/ardour/pushbutton/temporal_zoom_in", "f", temporal_zoom_in); + REGISTER_CALLBACK (serv, "/ardour/pushbutton/temporal_zoom_out", "f", temporal_zoom_out); REGISTER_CALLBACK (serv, "/ardour/pushbutton/scroll_up_1_track", "f", scroll_up_1_track); REGISTER_CALLBACK (serv, "/ardour/pushbutton/scroll_dn_1_track", "f", scroll_dn_1_track); + REGISTER_CALLBACK (serv, "/ardour/pushbutton/scroll_up_1_page", "f", scroll_up_1_page); + REGISTER_CALLBACK (serv, "/ardour/pushbutton/scroll_dn_1_page", "f", scroll_dn_1_page); /* These commands require the route index in addition to the arg; TouchOSC (et al) can't use these */ REGISTER_CALLBACK (serv, "/ardour/routes/mute", "ii", route_mute); diff --git a/libs/surfaces/osc/osc.h b/libs/surfaces/osc/osc.h index 6ccbbfdbb0..937893ecac 100644 --- a/libs/surfaces/osc/osc.h +++ b/libs/surfaces/osc/osc.h @@ -219,8 +219,12 @@ class OSC : public ARDOUR::ControlProtocol, public AbstractUI<OSCUIRequest> PATH_CALLBACK(zoom_5_min); PATH_CALLBACK(zoom_10_min); PATH_CALLBACK(zoom_to_session); + PATH_CALLBACK(temporal_zoom_in); + PATH_CALLBACK(temporal_zoom_out); PATH_CALLBACK(scroll_up_1_track); PATH_CALLBACK(scroll_dn_1_track); + PATH_CALLBACK(scroll_up_1_page); + PATH_CALLBACK(scroll_dn_1_page); #define PATH_CALLBACK1(name,type,optional) \ static int _ ## name (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { \ |