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

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 5: Line 5:
:;<var>x</var>: a scalar, vector or matrix
:;<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''.  
;Result: The result ''r'' has the same type as ''x'' and contains the converted elements of ''x''.  
:;'''hz2mel''': ''r''<sub>i,j</sub> = 2595. * log10(1. + ''x''<sub>i,j</sub> / 700.) : 0.
:;'''hz2mel''': ''r''<sub>i,j</sub> = 2595 * log''x''<sub>10</sub>(1 + ''x''<sub>i,j</sub> / 700)
:;'''bark2hz''': Because the above formula is not directly invertable, an iteration algorithm is used to convert the ''x''<sub>i,j</sub> from Bark to the result ''r''<sub>i,j</sub> in Hz.
::''x''<sub>i,j</sub> is the frequency in Hz and must be greater than 0
:Note: Both functions are also available in the expressions used in the [[Programmer_Guide/Command_Reference/NUM|NUM]] and [[Programmer_Guide/Command_Reference/INT|INT]] command.
:;'''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


;See also: [[Programmer_Guide/Command_Reference/EVAL/hz2mel|hz2mel, mel2hz]], [[Programmer_Guide/Command_Reference/EVAL/hz2erb|hz2erb, erb2hz]], [[Programmer_Guide/Command_Reference/EVAL/hz2cent|hz2cent, cent2hz]], [[Programmer_Guide/Command_Reference/EVAL/hth|hth]], [[Programmer_Guide/Command_Reference/EVAL/log2lin|lin2log, log2lin]]
;See also: [[Programmer_Guide/Command_Reference/EVAL/hz2bark|hz2bark, bark2hz]], [[Programmer_Guide/Command_Reference/EVAL/hz2erb|hz2erb, erb2hz]], [[Programmer_Guide/Command_Reference/EVAL/hz2cent|hz2cent, cent2hz]], [[Programmer_Guide/Command_Reference/EVAL/hth|hth]], [[Programmer_Guide/Command_Reference/EVAL/log2lin|lin2log, log2lin]]


[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]
[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]

Revision as of 15:17, 6 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 * logx10(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