public static enum PitchProcessor.PitchEstimationAlgorithm extends java.lang.Enum<PitchProcessor.PitchEstimationAlgorithm>
Enum Constant and Description |
---|
AMDF
A pitch extractor that extracts the Average Magnitude Difference
(AMDF) from an audio buffer.
|
DYNAMIC_WAVELET
An implementation of a dynamic wavelet pitch detection algorithm (See
DynamicWavelet ), described in a paper by Eric Larson and Ross
Maddox "Real-Time
Time-Domain Pitch Tracking Using Wavelets |
FFT_PITCH
Returns the frequency of the FFT-bin with most energy.
|
FFT_YIN
A YIN implementation with a faster
FastYin for the implementation. |
MPM
See
McLeodPitchMethod . |
YIN
See
Yin for the implementation. |
Modifier and Type | Method and Description |
---|---|
PitchDetector |
getDetector(float sampleRate,
int bufferSize)
Returns a new instance of a pitch detector object based on the provided values.
|
static PitchProcessor.PitchEstimationAlgorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PitchProcessor.PitchEstimationAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PitchProcessor.PitchEstimationAlgorithm YIN
Yin
for the implementation. Or see the YIN article.public static final PitchProcessor.PitchEstimationAlgorithm MPM
McLeodPitchMethod
. It is described in the article "A Smarter Way to Find Pitch".public static final PitchProcessor.PitchEstimationAlgorithm FFT_YIN
FastYin
for the implementation. Or see the YIN article.public static final PitchProcessor.PitchEstimationAlgorithm DYNAMIC_WAVELET
DynamicWavelet
), described in a paper by Eric Larson and Ross
Maddox "Real-Time
Time-Domain Pitch Tracking Using Waveletspublic static final PitchProcessor.PitchEstimationAlgorithm FFT_PITCH
public static final PitchProcessor.PitchEstimationAlgorithm AMDF
public static PitchProcessor.PitchEstimationAlgorithm[] values()
for (PitchProcessor.PitchEstimationAlgorithm c : PitchProcessor.PitchEstimationAlgorithm.values()) System.out.println(c);
public static PitchProcessor.PitchEstimationAlgorithm valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic PitchDetector getDetector(float sampleRate, int bufferSize)
sampleRate
- The sample rate of the audio buffer.bufferSize
- The size (in samples) of the audio buffer.