stack_annotations

ketos.audio.annotation.stack_annotations(handlers, keys=None, level=0)[source]

Create a handler to manage a stack of annotation sets.

The annotation sets will be indexed in the order they are provided.

Args:
handlers: list(AnnotationHandler)

Annotation handlers

keys: list

Keys for indexing the sets. If None is specified, the keys are set to 0,1,2,…

level: int

Set index level. Default is 0.

Returns:
handler: AnnotationHandler

Stacked annotation handler