Programmer Guide/Command Reference/EVAL/hz2erb: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:hz2erb, erb2hz}} | {{DISPLAYTITLE:hz2erb, erb2hz}} | ||
Convert all elements of ''x'' from Hertz to ERB (equivalent rectangulare bandwidth) | Convert all elements of ''x'' from Hertz to ERB (equivalent rectangulare bandwidth) and vice versa. | ||
;Usage: '''<code>hz2erb(<var>x</var>)</code> | ;Usage: '''<code>hz2erb(<var>x</var>)</code> | ||
:'''<code>erb2hz(<var>x</var>)</code> | :'''<code>erb2hz(<var>x</var>)</code> | ||
:;<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''. | ||
:;''' | :;'''hz2erb''': ''r''<sub>i,j</sub> = 16.7 * log<sub>10</sub>(1 + ''x''<sub>i,j</sub> / 165.4) | ||
:: | |||
:;'''erb2hz''': ''r''<sub>i,j</sub> = 165.4 * (10 ^ (0.06 * ''x''<sub>i,j</sub>) - 1) | |||
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. | |||
: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. | :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. | ||
Revision as of 15:27, 6 April 2011
Convert all elements of x from Hertz to ERB (equivalent rectangulare bandwidth) and vice versa.
- Usage
hz2erb(x)
erb2hz(x)
- x
- a scalar, vector or matrix
- Result
- The result r has the same type as x and contains the converted elements of x.
- hz2erb
- ri,j = 16.7 * log10(1 + xi,j / 165.4)
- erb2hz
- ri,j = 165.4 * (10 ^ (0.06 * xi,j) - 1)
Because the above formula is not directly invertable, an iteration algorithm is used to convert the xi,j from Bark to the result ri,j in Hz.
- See also
- hz2mel, mel2hz, hz2bark, bark2hz, hz2cent, cent2hz, hth, lin2log, log2lin
hz2erb
Hertz to Erb conversion (equivalent rectangle )
Usage:
hz2erb(x)