symusic.factory.PitchBendFactory

class PitchBendFactory[source]

Bases: object

Constructs wheel-based pitch bend events.

__init__() None

Methods

__init__()

from_numpy(time, value[, ttype])

Convert NumPy arrays to the appropriate pitch-bend list type.

from_numpy(time: numpy.ndarray, value: numpy.ndarray, ttype: TimeUnit | str = 'tick') PitchBendTickList | PitchBendQuarterList | PitchBendSecondList | List[PitchBend][source]

Convert NumPy arrays to the appropriate pitch-bend list type.