public class LSFInterpolator extends LPCAnalysisResynthesis implements InlineFrameMerger
Modifier and Type | Field and Description |
---|---|
protected double[] |
otherFrame1 |
protected double[] |
otherFrame2 |
protected double |
r |
protected double |
relativeWeightOther1 |
p
Constructor and Description |
---|
LSFInterpolator(int p,
double r)
Create an LSF-based interpolator.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
protected void |
processLPC(LpcAnalyser.LpCoeffs coeffs,
double[] residual)
Process the LPC coefficients in place.
|
void |
setFrameToMerge(double[] frameToMerge)
Set the frame of data to merge into the next call of applyInline().
|
void |
setFrameToMerge(double[] frame1,
double[] frame2,
double relativeWeightFrame1)
Set the frame of data to merge into the next call of applyInline().
|
applyInline
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyInline
protected double[] otherFrame1
protected double[] otherFrame2
protected double relativeWeightOther1
protected double r
public LSFInterpolator(int p, double r)
p
- the order of LPC analysisr
- the interpolation ratio, between 0 and 1: new = r * this + (1-r) * other
public void setFrameToMerge(double[] frameToMerge)
setFrameToMerge
in interface InlineFrameMerger
frameToMerge
- frame to mergepublic void setFrameToMerge(double[] frame1, double[] frame2, double relativeWeightFrame1)
setFrameToMerge
in interface InlineFrameMerger
frame1
- frame 1frame2
- frame 2relativeWeightFrame1
- , a number between 0 and 1 indicating the relative weight of frame1^ with respect to frame2. Consequently, the
relative weight of frame 2 will be (1 - relativeWeightFrame1).protected void processLPC(LpcAnalyser.LpCoeffs coeffs, double[] residual)
processLPC
in class LPCAnalysisResynthesis
coeffs
- the LPC coefficientsresidual
- the residual, of length framelengthCopyright © 2000–2016 DFKI GmbH. All rights reserved.