be.hogent.tarsos.sampled.pitch
Class VampPitchDetection
java.lang.Object
be.hogent.tarsos.sampled.pitch.VampPitchDetection
- All Implemented Interfaces:
- PitchDetector
public final class VampPitchDetection
- extends java.lang.Object
- implements PitchDetector
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
constantQValues
public double[][] constantQValues
VampPitchDetection
public VampPitchDetection(AudioFile audioFile,
PitchDetectionMode pitchDetectionMode)
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.
addArgument
public void addArgument(java.lang.String arg)
- Adds an argument to the ffmpeg executable call.
- Parameters:
arg
- The argument.
addFileArgument
public void addFileArgument(java.lang.String arg)
- Add a file to the ffmpeg executable call.
- Parameters:
arg
-
execute
public java.lang.String execute()
throws java.io.IOException
- Throws:
java.io.IOException
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
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.