Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mlib_signallpcpitchanalyze_f32(3mlib) [sunos man page]

mlib_SignalLPCPitchAnalyze_F32(3MLIB)			    mediaLib Library Functions			     mlib_SignalLPCPitchAnalyze_F32(3MLIB)

NAME
mlib_SignalLPCPitchAnalyze_F32 - perform open-loop pitch analysis SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_status mlib_SignalLPCPitchAnalyze_F32(mlib_s32 *pitch, const mlib_f32 *sigwgt, const mlib_s32 *region, mlib_s32 length); DESCRIPTION
The mlib_SignalLPCPitchAnalyze_F32() function performs open-loop pitch analysis. The open-loop pitch analysis uses perceptual weighted signal and is done with following steps. In the first step, three maxima of the correlation N-1 R(k) = SUM sw(j) * sw(j-k) j=0 where N = length, is located for each of the three search regions. In the second step, the retained maxima R(Ti), i=0,1,2 are normalized as following. R(Ti) Rn(ti) = ---------------------, i=0,1,2 N-1 2 SQRT(SUM sw(j-Ti) ) j=0 where N = length. In the third step, the best open-loop delay Topt is determined as following. Topt = T0 if (Rn(t1) >= (0.85 * Rn(Topt)) Topt = t1 if (Rn(t2) >= (0.85 * Rn(Topt)) Topt = t2 See G.729, G.729A, GSM EFR standards. PARAMETERS
The function takes the following arguments: pitch The speech pitch estimated. sigwgt The weighted signal vector. sigwgt points to the current sample of the weighted signal vector, length samples must be availabe after this point, and MAX{region[i],i=0,1,...,5} samples must be available before this point. region The lower/upper boundaries of the three search regions, where region[2*i] is the lower boundary of search region i and region[2*i+1] is the upper boundary of search region i. length The length of the signal vectors over which the correlation is calculated. RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
mlib_SignalLPCPitchAnalyze_S16(3MLIB), attributes(5) SunOS 5.10 10 Nov 2004 mlib_SignalLPCPitchAnalyze_F32(3MLIB)

Check Out this Related Man Page

mlib_SignalAutoCorrel_S16(3MLIB)			    mediaLib Library Functions				  mlib_SignalAutoCorrel_S16(3MLIB)

NAME
mlib_SignalAutoCorrel_S16, mlib_SignalAutoCorrel_S16S, mlib_SignalAutoCorrel_F32, mlib_SignalAutoCorrel_F32S - signal auto-correlation SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_status mlib_SignalAutoCorrel_S16(mlib_d64 *correl, const mlib_s16 *src, mlib_s32 disp, mlib_s32 n); mlib_status mlib_SignalAutoCorrel_S16S(mlib_d64 *correl, const mlib_s16 *src, mlib_s32 disp, mlib_s32 n); mlib_status mlib_SignalAutoCorrel_F32(mlib_d64 *correl, const mlib_f32 *src, mlib_s32 disp, mlib_s32 n); mlib_status mlib_SignalAutoCorrel_F32S(mlib_d64 *correl, const mlib_f32 *src, mlib_s32 disp, mlib_s32 n); DESCRIPTION
Each of these functions performs auto-correlation. For monaural signals, the following equation is used: 1 n-d-1 correl[0] = ----- * SUM (src[i] * src[i + d]) n - d i=0 For stereo signals, the following equation is used: 1 n-d-1 correl[0] = ----- * SUM (src[2*i] * src[2*(i + d)]) n - d i=0 1 n-d-1 correl[1] = ----- * SUM (src[2*i + 1] * src[2*(i + d) + 1]) n - d i=0 where d = disp. PARAMETERS
Each of the functions takes the following arguments: correl Pointer to the auto-correlation array. In the stereo version, correl[0] contains the auto-correlation of channel 0, and correl[1] contains the auto-correlation of channel 1. src Source signal array. disp Displacement. 0 <= disp < n. n Number of samples in the source signal array. RETURN VALUES
Each of the functions returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
mlib_SignalCrossCorrel_S16(3MLIB), attributes(5) SunOS 5.10 10 Nov 2004 mlib_SignalAutoCorrel_S16(3MLIB)
Man Page