symusic.factory.TrackFactory

class TrackFactory[source]

Bases: object

Creates symusic.core.Track* objects pre-populated with optional event lists.

__init__() None

Methods

__init__()

empty([ttype])

Return an empty track specialized for the requested time unit.

empty(ttype: TimeUnit | str = 'tick') Track[source]

Return an empty track specialized for the requested time unit.