From a85b8ed842f4c3dc290fa14952d6f2bd632eef30 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 2 Feb 2016 08:15:35 -0500 Subject: [PATCH] mackie: fix display of input trim level trackview mode --- libs/surfaces/mackie/strip.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/libs/surfaces/mackie/strip.cc b/libs/surfaces/mackie/strip.cc index d7f5c90fc7..2428681d9e 100644 --- a/libs/surfaces/mackie/strip.cc +++ b/libs/surfaces/mackie/strip.cc @@ -456,7 +456,6 @@ Strip::notify_trackview_change (AutomationType type, uint32_t send_num, bool for } boost::shared_ptr control; - boost::shared_ptr track = boost::dynamic_pointer_cast (r); switch (type) { @@ -483,11 +482,13 @@ Strip::notify_trackview_change (AutomationType type, uint32_t send_num, bool for if (control) { float val = control->get_value(); - if (control->desc().enumeration || control->desc().integer_step) { - do_parameter_display (type, val); - } else { - do_parameter_display (type, control->internal_to_interface (val)); - } + + /* Note: all of the displayed controllables require the display + * of their *actual* ("internal") value, not the version mapped + * into the normalized 0..1.0 ("interface") range. + */ + + do_parameter_display (type, val); /* update pot/encoder */ _surface->write (_vpot->set (control->internal_to_interface (val), true, Pot::wrap)); }