diff options
Diffstat (limited to 'src/lib/maths_util.cc')
| -rw-r--r-- | src/lib/maths_util.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/maths_util.cc b/src/lib/maths_util.cc index 76681afb6..7fb3b74ee 100644 --- a/src/lib/maths_util.cc +++ b/src/lib/maths_util.cc @@ -24,21 +24,21 @@ double -db_to_linear (double db) +db_to_linear(double db) { return pow(10, db / 20); } double -linear_to_db (double linear) +linear_to_db(double linear) { return 20 * log10(linear); } float -logarithmic_fade_in_curve (float t) +logarithmic_fade_in_curve(float t) { auto const c = clamp(t, 0.0f, 1.0f); return std::exp(2 * (c - 1)) * c; @@ -46,7 +46,7 @@ logarithmic_fade_in_curve (float t) float -logarithmic_fade_out_curve (float t) +logarithmic_fade_out_curve(float t) { auto const c = clamp(t, 0.0f, 1.0f); return std::exp(-2 * c) * (1 - c); |
