Programmer Guide/Command Reference/EVAL/hz2mel: Difference between revisions

From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import)
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:hz2mel, mel2hz}}
=====hz2mel=====
Convert all elements of ''x'' from Hertz to Mel and vice versa.
;Usage: <code>hz2mel(<var>x</var>)</code>
:<code>mel2hz(<var>x</var>)</code>
:;<var>x</var>: a scalar, vector or matrix
;Result: The result ''r'' has the same type as ''x'' and contains the converted elements of ''x''.
:;'''hz2mel''': ''r''<sub>i,j</sub> = 2595 * log<sub>10</sub>(1 + ''x''<sub>i,j</sub> / 700)
::''x''<sub>i,j</sub> is the frequency in Hz and must be greater than 0
:;'''mel2hz''': ''r''<sub>i,j</sub> = 700 * (10 ^ (''x''<sub>i,j</sub> / 2595) - 1)
::''x''<sub>i,j</sub> is the frequency in Mel and must be greater than 0


Hertz to Mel conversion.
;See also: [[../hz2bark|hz2bark, bark2hz]], [[../hz2erb|hz2erb, erb2hz]], [[../hz2cent|hz2cent, cent2hz]], [[../hth|hth]], [[../log2lin|lin2log, log2lin]]


=====Usage:=====
[[../#Functions|<function list>]]
 
<code>hz2mel(<var>x</var>)</code>

Latest revision as of 11:55, 21 April 2011

Convert all elements of x from Hertz to Mel and vice versa.

Usage
hz2mel(x)
mel2hz(x)
x
a scalar, vector or matrix
Result
The result r has the same type as x and contains the converted elements of x.
hz2mel
ri,j = 2595 * log10(1 + xi,j / 700)
xi,j is the frequency in Hz and must be greater than 0
mel2hz
ri,j = 700 * (10 ^ (xi,j / 2595) - 1)
xi,j is the frequency in Mel and must be greater than 0
See also
hz2bark, bark2hz, hz2erb, erb2hz, hz2cent, cent2hz, hth, lin2log, log2lin

<function list>

Navigation menu

Personal tools