Programmer Guide/Command Reference/EVAL/formants: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
::*maximum number of candidates M=<code>ncol(''cf'')</code> | ::*maximum number of candidates M=<code>ncol(''cf'')</code> | ||
::*each row of ''cf'' contains the candidates of one frame | ::*each row of ''cf'' contains the candidates of one frame | ||
::if <code>''cf''[i,k]=0 (0<=i<N, 0<=k<M)</code> the number of candidates in frame i equals k | ::*if <code>''cf''[i,k]=0 (0<=i<N, 0<=k<M)</code> the number of candidates in frame i equals k | ||
::the frequencies of frame i must be in ascending order: <code>''cf[i,j]<''c''f[i,j+1] (0<=j<k-1)</code> | ::*the frequencies of frame i must be in ascending order: <code>''cf[i,j]<''c''f[i,j+1] (0<=j<k-1)</code> | ||
:;<var>ca</var>:a matrix containing the amplitudes of formant candidates in dB | :;<var>ca</var>:a matrix containing the amplitudes of formant candidates in dB | ||
::*''ca'' must be a matrix with the same dimensions as ''cf''<BR>or a scalar, if amplitudes should not be used for formant tracking | ::*''ca'' must be a matrix with the same dimensions as ''cf''<BR>or a scalar, if amplitudes should not be used for formant tracking |
Revision as of 15:03, 20 April 2011
Format tracking algorithm.
- Usage
formants(cf, ca, f0, mflag, bias, lmin)
- cf
- a matrix containing the frequencies of the formant candidates in Hz
- number of frames: N=
nrow(cf)
- maximum number of candidates M=
ncol(cf)
- each row of cf contains the candidates of one frame
- if
cf[i,k]=0 (0<=i<N, 0<=k<M)
the number of candidates in frame i equals k - the frequencies of frame i must be in ascending order:
cf[i,j]<cf[i,j+1] (0<=j<k-1)
- number of frames: N=
- ca
- a matrix containing the amplitudes of formant candidates in dB
- ca must be a matrix with the same dimensions as cf
or a scalar, if amplitudes should not be used for formant tracking
- ca must be a matrix with the same dimensions as cf
- f0
- f0 vector
- f0 must be a vector with length N containing the f0 values int Hz
or a scalar, if f0 should not be used for formant tracking - if f0 is supplied, the formant tracking is only applied to voiced regions
- f0 must be a vector with length N containing the f0 values int Hz
- mflag
- selects the tracking method
- currently only one method (mflag=0) is implemented (see sp-atom FORMANTS for more details)
- a second method using a formant modell is under development
- bias
- tracking bias in Hz
- lmin
- the minimum length of a track in frames