From adbfd1b262b448a2ec6485b56a01991d8c147497 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 18 Apr 2012 16:26:43 +0000 Subject: [PATCH] MCP: maybe fix vpot behaviour as seen with pan width git-svn-id: svn://localhost/ardour2/branches/3.0@12008 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/surfaces/mackie/strip.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/surfaces/mackie/strip.cc b/libs/surfaces/mackie/strip.cc index 3b17255766..9fa19fa94d 100644 --- a/libs/surfaces/mackie/strip.cc +++ b/libs/surfaces/mackie/strip.cc @@ -612,12 +612,11 @@ Strip::handle_pot (Pot& pot, float delta) stop moving. So to get a stop event, we need to use a timeout. */ - pot.start_touch (_surface->mcp().transport_frame()); - + boost::shared_ptr ac = pot.control(); double p = pot.get_value (); p += delta; - p = min (1.0, p); - p = max (0.0, p); + p = max (ac->lower(), p); + p = min (ac->upper(), p); pot.set_value (p); }