13
0

faderport: add punch action

This commit is contained in:
Paul Davis 2015-12-01 10:35:30 -05:00
parent 0c9fd363ca
commit 0e629cd162
3 changed files with 10 additions and 0 deletions

View File

@ -149,6 +149,8 @@ FaderPort::FaderPort (Session& s)
get_button (Ffwd).set_action (boost::bind (&BasicUI::ffwd, this), true); get_button (Ffwd).set_action (boost::bind (&BasicUI::ffwd, this), true);
get_button (Ffwd).set_action (boost::bind (&BasicUI::goto_end, this), true, ShiftDown); get_button (Ffwd).set_action (boost::bind (&BasicUI::goto_end, this), true, ShiftDown);
get_button (Punch).set_action (boost::bind (&FaderPort::punch, this), true);
get_button (Loop).set_action (boost::bind (&BasicUI::loop_toggle, this), true); get_button (Loop).set_action (boost::bind (&BasicUI::loop_toggle, this), true);
get_button (Loop).set_action (boost::bind (&BasicUI::add_marker, this, string()), true, ShiftDown); get_button (Loop).set_action (boost::bind (&BasicUI::add_marker, this, string()), true, ShiftDown);

View File

@ -313,6 +313,8 @@ class FaderPort : public ARDOUR::ControlProtocol, public AbstractUI<FaderPortReq
void ardour_pan_azimuth (int); void ardour_pan_azimuth (int);
void ardour_pan_width (int); void ardour_pan_width (int);
void mixbus_pan (int); void mixbus_pan (int);
void punch ();
}; };
} }

View File

@ -257,3 +257,9 @@ FaderPort::mixbus_pan (int delta)
{ {
} }
void
FaderPort::punch ()
{
access_action ("Transport/TogglePunch");
}