free-audio / clap-plugins

MIT License
61 stars 9 forks source link

DecibelValueType::toParam #24

Closed dbadb closed 7 months ago

dbadb commented 10 months ago

i believe this:


t_Signal 
DecibelValueType::toParam(t_Signal engineValue) const 
{
    return std::log10(20.0 * engineValue);
}

should be return 20.0 * std::log10(engineValue)

?

abique commented 9 months ago

Indeed!