symusic.factory.PedalFactory

class PedalFactory[source]

Bases: object

Creates sustain/soft-pedal envelopes tied to the requested time resolution.

__init__() None

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.