symusic.factory.PedalFactory¶
- class PedalFactory[source]¶
Bases:
objectCreates sustain/soft-pedal envelopes tied to the requested time resolution.
Methods
__init__()from_numpy(time, duration[, ttype])Translate time/duration arrays into a pedal event list.
- from_numpy(time: numpy.ndarray, duration: numpy.ndarray, ttype: TimeUnit | str = 'tick') PedalTickList | PedalQuarterList | PedalSecondList | List[Pedal][source]¶
Translate time/duration arrays into a pedal event list.