public class KDEData extends java.lang.Object implements AudioFileChangedListener, AnnotationListener
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(Annotation annotation)
Add an annotation to the element.
|
void |
annotationsAdded()
Is called after a list of annotations is added.
|
void |
audioFileChanged(AudioFile newAudioFile) |
void |
clearAnnotations()
Clears all annotations.
|
void |
extractionFinished()
A hook to react to annotation extraction.
|
void |
extractionStarted()
A hook to react to annotation extraction.
|
static KDEData |
getInstance() |
java.util.HashMap<PitchDetectionMode,KernelDensityEstimate> |
getKDEs() |
boolean |
isEmpty() |
public static KDEData getInstance()
public boolean isEmpty()
public void audioFileChanged(AudioFile newAudioFile)
audioFileChanged in interface AudioFileChangedListenerpublic void addAnnotation(Annotation annotation)
AnnotationListeneraddAnnotation in interface AnnotationListenerannotation - The annotation to add: this method is called a lot. After a
clearAnnotations() call a very large number of annotations is
possible. So efficiently adding annotations should be possible
or threaded.public java.util.HashMap<PitchDetectionMode,KernelDensityEstimate> getKDEs()
public void clearAnnotations()
AnnotationListenerclearAnnotations in interface AnnotationListenerpublic void annotationsAdded()
AnnotationListenerannotationsAdded in interface AnnotationListenerpublic void extractionStarted()
AnnotationListenerextractionStarted in interface AnnotationListenerpublic void extractionFinished()
AnnotationListenerextractionFinished in interface AnnotationListener