diff options
author | Robin Gareus <robin@gareus.org> | 2017-09-24 21:10:31 +0200 |
---|---|---|
committer | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2017-09-24 22:58:59 +0200 |
commit | a982a7cc67235a0f4ee77210e376d2eda6e612d2 (patch) | |
tree | 9350f496e2fb27d86b28b5701fbe490e69c574a8 /libs/widgets/ardour_fader.cc | |
parent | 0910df0cc7817d5c96fc9c6085d05e30b2cfdb3e (diff) |
Fix computation of AutomationController steps
smallstep (resp. largestep) is intended to be the interface delta
corresponding to a desc.smallstep (resp. largestep) in internal scale,
and is computed by incrementing from desc.lower.
But ac->internal_to_interface(desc.lower) isn't necessarily zero. In
fact it currently is 0.5 / (M - m + 1) for integer parameters where M is
the maximum and m is the minimum possible value since it is the center
of the [0,1/(M-m+1)] interval.
Since the lower bound of the delta isn't always zero, don't ignore it
when computing the actual increment.
Diffstat (limited to 'libs/widgets/ardour_fader.cc')
0 files changed, 0 insertions, 0 deletions