public class AutoCorrelator extends java.lang.Object implements SignalCorrelator
Constructor and Description |
---|
AutoCorrelator(int numFrames) |
Modifier and Type | Method and Description |
---|---|
boolean |
addSample(double value)
Add a sample to be analyzed.
|
double |
getConfidence()
Measure of how confident the analyzer is of the last result.
|
float[] |
getDiffs()
For internal debugging.
|
double |
getPeriod() |
float |
getPitchCorrectionFactor() |
protected static double |
interpolatePeak(double d1,
double d2,
double d3) |
void |
setPitchCorrectionFactor(float pitchCorrectionFactor) |
protected static double interpolatePeak(double d1, double d2, double d3)
public float[] getDiffs()
SignalCorrelator
getDiffs
in interface SignalCorrelator
public boolean addSample(double value)
SignalCorrelator
addSample
in interface SignalCorrelator
public double getPeriod()
getPeriod
in interface SignalCorrelator
public double getConfidence()
SignalCorrelator
getConfidence
in interface SignalCorrelator
public float getPitchCorrectionFactor()
public void setPitchCorrectionFactor(float pitchCorrectionFactor)