23 #ifndef EDSP_MEL2HERTZ_HPP 24 #define EDSP_MEL2HERTZ_HPP 27 namespace edsp {
inline namespace converter {
31 template <mel_base scale>
37 constexpr T operator()(T mel) noexcept {
38 return 700.0 * (std::exp(mel / 1127.01048) - 1.0);
45 constexpr T operator()(T mel) noexcept {
46 return 700.0 * (std::pow(10.0, mel / 2595.0) - 1.0);
63 template <mel_base scale,
typename T>
65 return internal::inverter<scale>{}(mel);
70 #endif //EDSP_MEL2HERTZ_HPP mel_base
Definition: hertz2mel.hpp:32
Definition: hertz2mel.hpp:34
constexpr T mel2hertz(T mel) noexcept
Converts a frequency in mels to Hertz.
Definition: mel2hertz.hpp:64
Definition: amplifier.hpp:29
Definition: hertz2mel.hpp:33