be.hogent.tarsos.sampled.pitch
Class Polyphon

java.lang.Object
  extended by be.hogent.tarsos.sampled.pitch.Polyphon
All Implemented Interfaces:
PitchDetector

public class Polyphon
extends java.lang.Object
implements PitchDetector

Calls polyphon.

Author:
Joren Six

Constructor Summary
Polyphon(AudioFile audioFile, PitchDetectionMode mode)
           
 
Method Summary
 java.util.List<Annotation> executePitchDetection()
          Execute the pitch detection process.
 java.util.List<Annotation> getAnnotations()
           
 java.lang.String getName()
           
 double progress()
          Calculate and return an indicator for progress.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Polyphon

public Polyphon(AudioFile audioFile,
                PitchDetectionMode mode)
Method Detail

executePitchDetection

public java.util.List<Annotation> executePitchDetection()
Description copied from interface: PitchDetector
Execute the pitch detection process.

Specified by:
executePitchDetection in interface PitchDetector
Returns:
Returns a list of detected pitches, encapsulated in an annotation object.

progress

public double progress()
Description copied from interface: PitchDetector
Calculate and return an indicator for progress.

Specified by:
progress in interface PitchDetector
Returns:
A value between 0.0 and 100. Indicating the progress made in percentage. Or -1 if the task has an indeterminate duration.

getAnnotations

public java.util.List<Annotation> getAnnotations()
Specified by:
getAnnotations in interface PitchDetector
Returns:
a list of annotated samples

getName

public java.lang.String getName()
Specified by:
getName in interface PitchDetector
Returns:
the name of the detector possibly with parameters e.g. aubio_YIN