13
0

Work-around for plugins with log-scale parameter 0..SR/2

This commit is contained in:
Robin Gareus 2017-07-04 20:09:11 +02:00
parent 608f99ad1c
commit 135ffdcf6b

View File

@ -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;
}