MidiLoader

loader.midi.MidiLoader(
    unit=None,
    number_type=NumberType.float,
    interval_policy=IntervalPolicy.warn,
)

Abstract base class for MIDI loaders.

Subclasses must implement: - _load_source(): Parse MIDI file into event rows - ticks_per_beat: Property returning PPQ

Attributes

Name Description
events The MidiEventData containing all loaded events.
store Return a MidiStore wrapping the loader’s events.
ticks_per_beat Return the ticks per beat (PPQ) if available.