freqconv: Frequency scale conversion

Description Usage Arguments Value Author(s) References Examples

Description

Perform frequency scale conversions between Hertz, Bark- and different variants von the Melscale.

Usage

1
2
3
4
bark2hz(z)
hz2bark(f)
hz2mel(f, htk = FALSE)
mel2hz(z, htk = FALSE)

Arguments

f

Frequency in Hertz

z

Frequency in the auditory frequency scale

htk

Use the HTK-Melscale (htk = TRUE) or Slaney's Melscale from the Auditory Toolbox (htk = FALSE)

Value

The value of the input in the target frequency scale.

Author(s)

Sebastian Krey krey@statistik.tu-dortmund.de

References

Daniel P. W. Ellis: http://www.ee.columbia.edu/~dpwe/resources/matlab/rastamat/, Malcolm Slaney: Auditory Toolbox

Examples

1
2
3
4
5
6
hz2bark(440)
bark2hz(hz2bark(440))
hz2mel(440, htk = TRUE)
mel2hz(hz2mel(440, htk = TRUE), htk = TRUE)
hz2mel(440, htk = FALSE)
mel2hz(hz2mel(440, htk = FALSE), htk = FALSE)

Example output

[1] 4.078563
[1] 440
[1] 549.6387
[1] 440
[1] 6.6
[1] 440

tuneR documentation built on May 2, 2019, 6:15 p.m.

Related to freqconv in tuneR...