symusic.factory.KeySignatureFactory

class KeySignatureFactory[source]

Bases: object

Factory responsible for key signature events and their typed vectors.

__init__() None

Methods

__init__()

from_numpy(time, key, tonality[, ttype])

Convert NumPy buffers into a typed key signature list for the core API.

from_numpy(time: numpy.ndarray, key: numpy.ndarray, tonality: numpy.ndarray, ttype: TimeUnit | str = 'tick') KeySignatureTickList | KeySignatureQuarterList | KeySignatureSecondList | List[KeySignature][source]

Convert NumPy buffers into a typed key signature list for the core API.