ScoreMidiLoader
loader.midi.score.ScoreMidiLoader(
part_voice_assign_mode=0,
quantization_unit=None,
estimate_voice_info=False,
estimate_key=False,
assign_note_ids=True,
parser='partitura',
unit=None,
number_type=None,
**kwargs,
)Load score MIDI files using partitura or a mido fast path.
This loader uses partitura’s sophisticated MIDI parsing to extract structural information like voices, parts, and specific pitches (optional). It is ideal for quantized MIDI files representing scores.
The default partitura parser emits :class:ScoreMidiEventData, the wider schema containing voice, staff, and part_id. parser="mido" parses only MIDI messages and emits the base :class:MidiEventData schema; it is appropriate when structural score information is not required.
Attributes
| Name | Description |
|---|---|
| ticks_per_beat | Return the ticks per beat (PPQ) of the loaded file. |