public final class CachingDetector extends java.lang.Object implements PitchDetector
Constructor and Description |
---|
CachingDetector(AudioFile audioFile,
PitchDetector pitchDetector)
Create a new caching pitch detector.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public CachingDetector(AudioFile audioFile, PitchDetector pitchDetector)
audioFile
- The file to cache results for.pitchDetector
- The detector used.public java.util.List<Annotation> executePitchDetection()
PitchDetector
executePitchDetection
in interface PitchDetector
public java.util.List<Annotation> getAnnotations()
getAnnotations
in interface PitchDetector
public java.lang.String getName()
getName
in interface PitchDetector
public double progress()
PitchDetector
progress
in interface PitchDetector