Learn R Programming

hqmisc (version 0.2-1)

f2bark: Convert between frequency in Hz and in Bark

Description

Convert between frequency in Hz and in psychoacoustic Bark units

Usage

f2bark( hz )
bark2f( bark )

Arguments

hz

a frequency in Hertz (cycles per second).

bark

a frequency in Bark units.

Value

Transformed value(s) in Bark or Hertz units.

Details

These functions convert between the linear Hertz and psychoacoustic Bark scales. The functions use Formula (6) of Traunm<U+00FC>ller (1990).

References

Traunm<U+00FC>ller, H. (1990). Analytical expressions for the tonotopic sensory scale. Journal of the Acoustical Society of America, 88(1), 97-100.

See Also

f2st, st2f, f2mel, mel2f.

Examples

Run this code
# NOT RUN {
f2bark( c(1,3,5)*500 )
bark2f( 12 )
# }

Run the code above in your browser using DataLab