1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

LADSPA: correctly compute the default value for logarithmic control ports

This commit is contained in:
spider-mario 2015-05-16 16:05:46 +02:00
parent ffc41f0f10
commit e6b0869a82

View File

@ -618,7 +618,7 @@ bool LadspaEffect::SetHost(EffectHostInterface *host)
{
if (LADSPA_IS_HINT_LOGARITHMIC(hint.HintDescriptor))
{
val = exp(log(lower)) * 0.75f + log(upper) * 0.25f;
val = exp(log(lower) * 0.75f + log(upper) * 0.25f);
}
else
{
@ -630,7 +630,7 @@ bool LadspaEffect::SetHost(EffectHostInterface *host)
{
if (LADSPA_IS_HINT_LOGARITHMIC(hint.HintDescriptor))
{
val = exp(log(lower)) * 0.5f + log(upper) * 0.5f;
val = exp(log(lower) * 0.5f + log(upper) * 0.5f);
}
else
{
@ -642,7 +642,7 @@ bool LadspaEffect::SetHost(EffectHostInterface *host)
{
if (LADSPA_IS_HINT_LOGARITHMIC(hint.HintDescriptor))
{
val = exp(log(lower)) * 0.25f + log(upper) * 0.75f;
val = exp(log(lower) * 0.25f + log(upper) * 0.75f);
}
else
{