Package be.tarsos.dsp.pitch
Enum PitchProcessor.PitchEstimationAlgorithm
java.lang.Object
java.lang.Enum<PitchProcessor.PitchEstimationAlgorithm>
be.tarsos.dsp.pitch.PitchProcessor.PitchEstimationAlgorithm
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PitchProcessor.PitchEstimationAlgorithm>
,java.lang.constant.Constable
- Enclosing class:
- PitchProcessor
public static enum PitchProcessor.PitchEstimationAlgorithm extends java.lang.Enum<PitchProcessor.PitchEstimationAlgorithm>
A list of pitch estimation algorithms.
- Author:
- Joren Six
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant 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 (SeeDynamicWavelet
), described in a paper by Eric Larson and Ross Maddox "Real-Time Time-Domain Pitch Tracking Using WaveletsFFT_PITCH
Returns the frequency of the FFT-bin with most energy.FFT_YIN
A YIN implementation with a fasterFastYin
for the implementation.MPM
SeeMcLeodPitchMethod
.YIN
SeeYin
for the implementation. -
Method Summary
Modifier and Type Method 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.
-
Enum Constant Details
-
YIN
SeeYin
for the implementation. Or see the YIN article. -
MPM
SeeMcLeodPitchMethod
. It is described in the article "A Smarter Way to Find Pitch". -
FFT_YIN
A YIN implementation with a fasterFastYin
for the implementation. Or see the YIN article. -
DYNAMIC_WAVELET
An implementation of a dynamic wavelet pitch detection algorithm (SeeDynamicWavelet
), 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. -
AMDF
A pitch extractor that extracts the Average Magnitude Difference (AMDF) from an audio buffer. This is a good measure of the Pitch (f0) of a signal.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getDetector
Returns a new instance of a pitch detector object based on the provided values.- Parameters:
sampleRate
- The sample rate of the audio buffer.bufferSize
- The size (in samples) of the audio buffer.- Returns:
- A new pitch detector object.
-