mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
another log-scale automation fix
This commit is contained in:
parent
61729f8e68
commit
42424eeb6c
1 changed files with 1 additions and 1 deletions
|
|
@ -1226,7 +1226,7 @@ AutomationLine::model_to_view_coord_y (double& y) const
|
||||||
if ( alist->parameter().type() == GainAutomation
|
if ( alist->parameter().type() == GainAutomation
|
||||||
|| alist->parameter().type() == EnvelopeAutomation
|
|| alist->parameter().type() == EnvelopeAutomation
|
||||||
|| (_desc.logarithmic && _desc.lower == 0. && _desc.upper > _desc.lower)) {
|
|| (_desc.logarithmic && _desc.lower == 0. && _desc.upper > _desc.lower)) {
|
||||||
y = gain_to_slider_position_with_max (y, Config->get_max_gain());
|
y = gain_to_slider_position_with_max (y, _desc.upper);
|
||||||
} else if (alist->parameter().type() == TrimAutomation
|
} else if (alist->parameter().type() == TrimAutomation
|
||||||
|| (_desc.logarithmic && _desc.lower * _desc.upper > 0 && _desc.upper > _desc.lower)) {
|
|| (_desc.logarithmic && _desc.lower * _desc.upper > 0 && _desc.upper > _desc.lower)) {
|
||||||
const double lower_db = accurate_coefficient_to_dB (_desc.lower);
|
const double lower_db = accurate_coefficient_to_dB (_desc.lower);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue