jams.sonify.sonify

jams.sonify.sonify(annotation, sr=22050, duration=None, **kwargs)[source]

Sonify a jams annotation through mir_eval

Parameters:
annotationjams.Annotation

The annotation to sonify

srpositive number

The sampling rate of the output waveform

durationfloat (optional)

Optional length (in seconds) of the output waveform

**kwargs

Additional keyword arguments to mir_eval.sonify functions

Returns:
y_sonifiednp.ndarray

The waveform of the sonified annotation

Raises:
NamespaceError

If the annotation has an un-sonifiable namespace