MCP: work on rec-enable

git-svn-id: svn://localhost/ardour2/branches/3.0@11993 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-04-16 22:33:09 +00:00
parent b5276aa4ab
commit 0078582a5f
2 changed files with 2 additions and 1 deletions

View File

@ -214,6 +214,7 @@ Track::RecEnableControl::RecEnableControl (boost::shared_ptr<Track> t)
void
Track::RecEnableControl::set_value (double val)
{
cerr << "Track " << track->name() << " rec-enable set to " << val << endl;
track->set_record_enabled (val >= 0.5 ? true : false, this);
}

View File

@ -515,7 +515,7 @@ Strip::handle_button (Button& button, ButtonState bs)
default:
if ((control = button.control ())) {
if (bs == press) {
DEBUG_TRACE (DEBUG::MackieControl, "add button on release\n");
DEBUG_TRACE (DEBUG::MackieControl, "add button on press\n");
_surface->mcp().add_down_button ((AutomationType) control->parameter().type(), _surface->number(), _index);
float new_value;