From 24727e65befc310f24196d11a56ec7b269977c16 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 4 Dec 2014 00:29:28 -0500 Subject: Make gain controls step by roughly 1.0/0.1 dB. Shoot for roughly 30 steps for all controls. Always keep sensible step information in ParameterDescriptor and just convert for the UI. This is a little weird, but it's less weird than it was before, and works. --- gtk2_ardour/automation_controller.cc | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'gtk2_ardour/automation_controller.cc') diff --git a/gtk2_ardour/automation_controller.cc b/gtk2_ardour/automation_controller.cc index f4a0d7d2f1..6acf37f953 100644 --- a/gtk2_ardour/automation_controller.cc +++ b/gtk2_ardour/automation_controller.cc @@ -126,19 +126,8 @@ AutomationController::create(boost::shared_ptr printer, const double lo = ac->internal_to_interface(desc.lower); const double up = ac->internal_to_interface(desc.upper); const double normal = ac->internal_to_interface(desc.normal); - double smallstep = desc.smallstep; - double largestep = desc.largestep; - if (smallstep == 0.0) { - smallstep = up / 1000.; - } else { - smallstep = ac->internal_to_interface(desc.lower + smallstep); - } - - if (largestep == 0.0) { - largestep = up / 40.; - } else { - largestep = ac->internal_to_interface(desc.lower + largestep); - } + const double smallstep = ac->internal_to_interface(desc.lower + desc.smallstep); + const double largestep = ac->internal_to_interface(desc.lower + desc.largestep); Gtk::Adjustment* adjustment = manage ( new Gtk::Adjustment (normal, lo, up, smallstep, largestep)); -- cgit v1.2.3