|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.hogent.tarsos.sampled.pitch.CachingDetector
public final class CachingDetector
Caches the results of a pitch detector by serializing annotations to a file. If a file with annotations exists it reads the contents, otherwise the pitch detector is executed and the annotations are stored.
Constructor Summary | |
---|---|
CachingDetector(AudioFile audioFile,
PitchDetector pitchDetector)
Create a new caching pitch detector. |
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 |
---|
public CachingDetector(AudioFile audioFile, PitchDetector pitchDetector)
audioFile
- The file to cache results for.pitchDetector
- The detector used.Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |