mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 15:15:41 +01:00
Work-around for plugins with log-scale parameter 0..SR/2
This commit is contained in:
parent
608f99ad1c
commit
135ffdcf6b
1 changed files with 4 additions and 0 deletions
|
|
@ -157,6 +157,10 @@ ParameterDescriptor::update_steps()
|
|||
if (toggled || enumeration) {
|
||||
logarithmic = false;
|
||||
}
|
||||
if (logarithmic && sr_dependent && upper > lower && lower == 0) {
|
||||
/* work-around for plugins with a log-scale control 0..SR; log (0) is not defined */
|
||||
lower = upper / 1000.f;
|
||||
}
|
||||
if (logarithmic && (upper <= lower || lower * upper <= 0)) {
|
||||
logarithmic = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue