dsp.LSFToLPC System object

Package: dsp

Convert line spectral frequencies to linear prediction coefficients

Description

The LSFToLPC object converts line spectral frequencies to linear prediction coefficients.

To convert LSF to LPC:

  1. Define and set up your LSF to LPC converter. See Construction.

  2. Call step to convert LSF according to the properties of dsp.LSFToLPC. The behavior of step is specific to each object in the toolbox.

Construction

H = dsp.LSFToLPC returns an LSF to LPC System object™, H, which converts line spectral frequencies (LSFs) to linear prediction coefficients (LPCs).

Methods

cloneCreate LSF to LPC object with same property values
getNumInputsNumber of expected inputs to step method
getNumOutputsNumber of outputs of step method
isLockedLocked status for input attributes and nontunable properties
releaseAllow property value and input characteristics changes
stepConvert input line spectral frequencies to linear prediction coefficients

Examples

Convert line spectral frequencies to linear prediction coefficients:

 a = [1.0000 0.6149 0.9899 0.0000 0.0031 -0.0082]'
 hlpc2lsf = dsp.LPCToLSF;
 ylsf = step(hlpc2lsf, a);
 hlsf2lpc = dsp.LSFToLPC;
 ylpc = step(hlsf2lpc, ylsf) % Check values are same as a.

Algorithms

This object implements the algorithm, inputs, and outputs described on the LSF/LSP to LPC Conversion block reference page. The object properties correspond to the block parameters, except:

The object does not have a property that corresponds to the Input block parameter. The object's behavior corresponds to the block's behavior when you set the Input parameter to LSF in range (0 pi).
Was this topic helpful?