(To be removed) Convert linear prediction coefficients to line spectral frequencies
dsp.LPCToLSF
will be removed in a future release. Use poly2lsf
from Signal
Processing Toolbox™ instead. For more information, see Compatibility Considerations.
The LPCToLSF
object converts linear prediction
coefficients to line spectral frequencies.
To convert LPC to LSF:
Define and set up your LPC to LSF converter. See Construction.
Call step
to convert LPC according to the
properties of dsp.LPCToLSF
. The behavior of
step
is specific to each object in the
toolbox.
Starting in R2016b, instead of using the step
method to perform the operation defined by the System
object™, you can call the object with arguments, as if it were a function. For
example, y = step(obj,x)
and y = obj(x)
perform equivalent operations.
lpc2lsf = dsp.LPCToLSF
returns a System
object, lpc2lsf
, that converts linear
prediction coefficients (LPCs) to line spectral frequencies (LSFs).
lpc2lsf = dsp.LPCToLSF('
returns an PropertyName
',PropertyValue
,...)LPC
to LSF
System
object, lpc2lsf
, with each specified property
set to the specified value.
|
Number of coarse subintervals used for finding roots (LSP values) Specify the number of coarse subintervals, |
|
Value of bisection refinement used for finding roots Specify the root bisection refinement value, of the actual LSP value. Here n is
the value of the |
|
Produces output with validity status of LSF output Set this property to |
|
Enable overwriting invalid output with previous output Specify the action that the System
object should take for invalid LSF outputs. When you set this
property to |
|
Source of values for first output when output is invalid Specify the source of values for the first output when the output is
invalid as |
|
Value of the first output Specify a numeric vector of LSF values for overwriting an invalid first
output. The length of this vector must be one less than the length of the
input LPC vector. For multichannel inputs, you can set this property to a
matrix with the same number of channels as the input, or one vector that is
applied to every channel. The default is an empty vector. This property
applies when you set the |
|
Action to take when first LPC coefficient is not
Specify the action the object takes when the first coefficient of each
channel of the LPC input is not |
reset | Reset values for overwriting invalid outputs to their initial values |
step | Convert LPC coefficients to line spectral frequencies |
Common to All System Objects | |
---|---|
release | Allow System object property value changes |
Note: This example runs only in
R2016b or later. If you are using an earlier release, replace each call to the
function with the equivalent step
syntax. For example,
myObject(x) becomes step(myObject,x).
Convert LPC to LSF coefficients
a = [1.0000 0.6149 0.9899 0.0000 0.0031 -0.0082]'; lpc2lsf = dsp.LPCToLSF; y = lpc2lsf(a); display(y);
y = 5×1
0.7842
1.5605
1.8776
1.8984
2.3593
This object implements the algorithm, inputs, and outputs described on the LPC to LSF/LSP Conversion block reference page. The object properties correspond to the block parameters, except:
There is no object property that corresponds to the Output block parameter. The object only supports LSF outputs in the range (0,) |