lookas 1.10.0

Perception aligned terminal-based audio spectrum visualizer
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[inline]
#[must_use]
pub fn hz_to_mel(f: f32) -> f32 {
    2595.0 * (1.0 + f / 700.0).log10()
}

#[inline]
#[must_use]
pub fn mel_to_hz(m: f32) -> f32 {
    700.0 * (10f32.powf(m / 2595.0) - 1.0)
}