Advertisement
AQtun

Loudness Percentage to Perceived Loudness

Aug 7th, 2024 (edited)
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.15 KB | None | 0 0
  1. // Fletcher-Munson Curve Approximation
  2. float LinearToPerceivedLoudness(float volume)
  3. {
  4.   return powf(volume, 0.3f) * (1.0f - powf(1.0f - volume, 0.6f));
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement