mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Reinstate user Controllable values, as they are needed
for gain (which I forgot about). git-svn-id: svn://localhost/ardour2/branches/3.0@11293 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
a8bb49e5d8
commit
4381b590bb
9 changed files with 56 additions and 46 deletions
|
|
@ -95,11 +95,11 @@ AutomationController::get_label (double& xpos)
|
|||
void
|
||||
AutomationController::display_effective_value()
|
||||
{
|
||||
double const ui_value = _controllable->user_to_ui (_controllable->get_value());
|
||||
double const interface_value = _controllable->internal_to_interface (_controllable->get_value());
|
||||
|
||||
if (_adjustment->get_value() != ui_value) {
|
||||
if (_adjustment->get_value () != interface_value) {
|
||||
_ignore_change = true;
|
||||
_adjustment->set_value (ui_value);
|
||||
_adjustment->set_value (interface_value);
|
||||
_ignore_change = false;
|
||||
}
|
||||
}
|
||||
|
|
@ -108,7 +108,7 @@ void
|
|||
AutomationController::value_adjusted ()
|
||||
{
|
||||
if (!_ignore_change) {
|
||||
_controllable->set_value (_controllable->ui_to_user (_adjustment->get_value()));
|
||||
_controllable->set_value (_controllable->interface_to_internal (_adjustment->get_value()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue