Skip to content

Commit

Permalink
Fix bad decibel value type conversion
Browse files Browse the repository at this point in the history
Fixes #24
  • Loading branch information
abique committed Dec 14, 2023
1 parent 51e85da commit e5d51b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/value-types/decibel-value-type.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace clap {
}

double DecibelValueType::toParam(double engineValue) const {
return std::log10(20.0 * engineValue);
return 20.0 * std::log10(engineValue);
}
bool DecibelValueType::hasEngineDomain() const { return true; }
} // namespace clap

0 comments on commit e5d51b6

Please sign in to comment.