diff options
author | John Anderson <ardour@semiosix.com> | 2007-07-19 22:07:10 +0000 |
---|---|---|
committer | John Anderson <ardour@semiosix.com> | 2007-07-19 22:07:10 +0000 |
commit | 4c12c98e338dd88e7b05b7e47133f91c3e3bbc06 (patch) | |
tree | b4c58bcba79696bcaf453cff5441d6caff417f85 /libs/surfaces/mackie/mackie_control_protocol.h | |
parent | 47add43cd028855cda2292bef9dcde607f948490 (diff) |
Jog Wheel Fun:
- When ffwd/rew is pressed, wheel controls speed
- Zoom button allows jog wheel to zoom
- Scrub button cycles jog from scrub to shuttle to whatever it was before
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2155 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/mackie_control_protocol.h')
-rw-r--r-- | libs/surfaces/mackie/mackie_control_protocol.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/libs/surfaces/mackie/mackie_control_protocol.h b/libs/surfaces/mackie/mackie_control_protocol.h index e1b3fb5b4e..112b5c3f0f 100644 --- a/libs/surfaces/mackie/mackie_control_protocol.h +++ b/libs/surfaces/mackie/mackie_control_protocol.h @@ -35,6 +35,7 @@ #include "route_signal.h" #include "mackie_button_handler.h" #include "mackie_port.h" +#include "mackie_jog_wheel.h" #include "timer.h" namespace MIDI { @@ -184,6 +185,19 @@ class MackieControlProtocol virtual Mackie::LedState marker_press( Mackie::Button & ); virtual Mackie::LedState marker_release( Mackie::Button & ); + // jog wheel states + virtual Mackie::LedState zoom_press( Mackie::Button & ); + virtual Mackie::LedState zoom_release( Mackie::Button & ); + + virtual Mackie::LedState scrub_press( Mackie::Button & ); + virtual Mackie::LedState scrub_release( Mackie::Button & ); + + /// This is the main MCU port, ie not an extender port + /// Only for use by JogWheel + const Mackie::MackiePort & mcu_port() const; + Mackie::MackiePort & mcu_port(); + ARDOUR::Session & get_session() { return *session; } + protected: // create instances of MackiePort, depending on what's found in ardour.rc void create_ports(); @@ -222,10 +236,6 @@ class MackieControlProtocol // delete all RouteSignal objects connecting Routes to Strips void clear_route_signals(); - /// This is the main MCU port, ie not an extender port - const Mackie::MackiePort & mcu_port() const; - Mackie::MackiePort & mcu_port(); - typedef std::vector<Mackie::RouteSignal*> RouteSignals; RouteSignals route_signals; @@ -318,6 +328,8 @@ class MackieControlProtocol // timer for two quick marker left presses Mackie::Timer _frm_left_last; + + Mackie::JogWheel _jog_wheel; }; #endif // ardour_mackie_control_protocol_h |