symusic.factory.ControlChangeFactory

class ControlChangeFactory[source]

Bases: object

Produces controller events mapped to the requested time domain.

__init__() None

Methods

__init__()

from_numpy(time, number, value[, ttype])

Build a control-change list from structure-of-array NumPy buffers.

from_numpy(time: numpy.ndarray, number: numpy.ndarray, value: numpy.ndarray, ttype: TimeUnit | str = 'tick') ControlChangeTickList | ControlChangeQuarterList | ControlChangeSecondList | List[ControlChange][source]

Build a control-change list from structure-of-array NumPy buffers.