public final class AnnotationTree
extends java.lang.Object
| Constructor and Description |
|---|
AnnotationTree(PitchUnit pitchUnit)
Create a new annotation tree.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Annotation annotation)
Add one annotation to the tree.
|
void |
add(java.util.List<Annotation> annotations)
Add a list of annotations to the KD-tree.
|
java.util.List<Annotation> |
select(AnnotationSelection selection)
Select a subset of all annotations within a pitch - time range.
|
int |
size() |
public AnnotationTree(PitchUnit pitchUnit)
pitchUnit - The pitch unit. The pitch unit needs to be defined here to be
able to do range selection in a certain unit.public void add(java.util.List<Annotation> annotations)
annotations - The annotations to add to the tree.public java.util.List<Annotation> select(AnnotationSelection selection)
selection - A selection defines a pitch-time range.public int size()
public void add(Annotation annotation)
annotation - The annotation to add.