diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-02 08:15:35 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-02 08:15:35 -0500 |
commit | a85b8ed842f4c3dc290fa14952d6f2bd632eef30 (patch) | |
tree | 118891b50cdf39970df3d1a16d956420b358c357 /libs/surfaces | |
parent | 4c13018656b2c655025c733a4056b53c3a93e941 (diff) |
mackie: fix display of input trim level trackview mode
Diffstat (limited to 'libs/surfaces')
-rw-r--r-- | libs/surfaces/mackie/strip.cc | 13 |
1 files 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<AutomationControl> control; - boost::shared_ptr<Track> track = boost::dynamic_pointer_cast<Track> (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)); } |