23 #ifndef EDSP_HZ2BARK_HPP 24 #define EDSP_HZ2BARK_HPP 28 namespace edsp {
inline namespace converter {
46 constexpr T hertz2bark(T f) noexcept {
47 const auto b = (26.81 * f) / (1960 + f) - 0.53;
52 b += 0.22 * (b - 20.1);
74 return 52548.0 / (z * z - 52.56 * z + 690.39);
79 #endif //EDSP_HZ2BARK_HPP constexpr T bark2band(T z) noexcept
Converts a frequency in Hertz into its equivalent Bark scale value.
Definition: hertz2bark.hpp:73
Definition: amplifier.hpp:29