From 4991bf5a1a72720e2f91e2b9e91cfc034c384436 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 16 Jun 2016 14:06:16 -0400 Subject: push2: working bidirectional communication, some transport control/display (LED only); some scrolling --- libs/surfaces/push2/buttons.cc | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 libs/surfaces/push2/buttons.cc (limited to 'libs/surfaces/push2/buttons.cc') diff --git a/libs/surfaces/push2/buttons.cc b/libs/surfaces/push2/buttons.cc new file mode 100644 index 0000000000..1db04f486e --- /dev/null +++ b/libs/surfaces/push2/buttons.cc @@ -0,0 +1,34 @@ +#include "ardour/session.h" + +#include "push2.h" + +using namespace ArdourSurface; + +void +Push2::button_play () +{ + if (session->transport_rolling ()) { + transport_stop (); + } else { + transport_play (); + } +} + +void +Push2::button_recenable () +{ + std::cerr << "RE toggle\n"; + rec_enable_toggle (); +} + +void +Push2::button_up () +{ + scroll_up_1_track (); +} + +void +Push2::button_down () +{ + scroll_dn_1_track (); +} -- cgit v1.2.3