mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
plugin widgets were written to use Internal values, so use that for now
This commit is contained in:
parent
41f13c0109
commit
ceff2e3a62
5 changed files with 13 additions and 99 deletions
|
|
@ -71,9 +71,9 @@ AutomationController::create(
|
|||
{
|
||||
Gtk::Adjustment* adjustment = manage (
|
||||
new Gtk::Adjustment (
|
||||
ac->internal_to_interface (param.normal()),
|
||||
ac->internal_to_interface (param.min()),
|
||||
ac->internal_to_interface (param.max()),
|
||||
param.normal(),
|
||||
param.min(),
|
||||
param.max(),
|
||||
(param.max() - param.min()) / 100.0,
|
||||
(param.max() - param.min()) / 10.0
|
||||
)
|
||||
|
|
@ -94,7 +94,7 @@ AutomationController::get_label (double& xpos)
|
|||
void
|
||||
AutomationController::display_effective_value()
|
||||
{
|
||||
double const interface_value = _controllable->internal_to_interface (_controllable->get_value());
|
||||
double const interface_value = _controllable->get_value();
|
||||
|
||||
if (_adjustment->get_value () != interface_value) {
|
||||
_ignore_change = true;
|
||||
|
|
@ -107,7 +107,7 @@ void
|
|||
AutomationController::value_adjusted ()
|
||||
{
|
||||
if (!_ignore_change) {
|
||||
_controllable->set_value (_controllable->interface_to_internal (_adjustment->get_value()));
|
||||
_controllable->set_value (_adjustment->get_value());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue