jams.sonify.sonify

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

Sonify a jams annotation through mir_eval

Parameters:
annotation : jams.Annotation

The annotation to sonify

sr = : positive number

The sampling rate of the output waveform

duration : float (optional)

Optional length (in seconds) of the output waveform

kwargs

Additional keyword arguments to mir_eval.sonify functions

Returns:
y_sonified : np.ndarray

The waveform of the sonified annotation

Raises:
NamespaceError

If the annotation has an un-sonifiable namespace