be.hogent.tarsos.dsp.pitch
Enum PitchProcessor.PitchEstimationAlgorithm

java.lang.Object
  extended by java.lang.Enum<PitchProcessor.PitchEstimationAlgorithm>
      extended by be.hogent.tarsos.dsp.pitch.PitchProcessor.PitchEstimationAlgorithm
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PitchProcessor.PitchEstimationAlgorithm>
Enclosing class:
PitchProcessor

public static enum PitchProcessor.PitchEstimationAlgorithm
extends java.lang.Enum<PitchProcessor.PitchEstimationAlgorithm>

A list of pitch estimation algorithms.

Author:
Joren Six

Enum Constant Summary
DYNAMIC_WAVELET
           
MPM
          See McLeodPitchMethod.
YIN
          See Yin for the implementation.
 
Method Summary
 PitchDetector getDetector(float sampleRate, int bufferSize)
           
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.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

YIN

public static final PitchProcessor.PitchEstimationAlgorithm YIN
See Yin for the implementation. Or see the YIN article.


MPM

public static final PitchProcessor.PitchEstimationAlgorithm MPM
See McLeodPitchMethod. It is described in the article "A Smarter Way to Find Pitch".


DYNAMIC_WAVELET

public static final PitchProcessor.PitchEstimationAlgorithm DYNAMIC_WAVELET
Method Detail

values

public static PitchProcessor.PitchEstimationAlgorithm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PitchProcessor.PitchEstimationAlgorithm c : PitchProcessor.PitchEstimationAlgorithm.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PitchProcessor.PitchEstimationAlgorithm valueOf(java.lang.String name)
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 name
java.lang.NullPointerException - if the argument is null

getDetector

public PitchDetector getDetector(float sampleRate,
                                 int bufferSize)