symusic.factory.TempoFactory¶
- class TempoFactory[source]¶
Bases:
objectCreates tempo-change events, handling either QPM or raw MSPQ inputs.
Methods
__init__()from_numpy(time, mspq[, ttype])Build a tempo-change list from aligned NumPy arrays.
- from_numpy(time: numpy.ndarray, mspq: numpy.ndarray, ttype: TimeUnit | str = 'tick') TempoTickList | TempoQuarterList | TempoSecondList | List[Tempo][source]¶
Build a tempo-change list from aligned NumPy arrays.