Modules
- The
core
module is for types and concepts that are not strictly related to MIDI files. These types and concepts could be used for realtime MIDI as well. ! - The
file
module is for types and concepts strictly related to MIDI files. These are separated from types and concepts that are also used in realtime MIDI (core
).
Structs
- The public Error type for this library.
- Represents a MIDI file, which consists of a header identifying the type of MIDI file, and tracks with MIDI data.
- Optionally provide settings to the
MidiFile
. This is a ‘builder’ struct.
Enums
- The MIDI spec does not state what encoding should be used for strings. Since Rust strings are UTF-8 encoded, we try to parse text as a
String
and hope for the best. But if we get an error then we store the original bytes to facilitate lossless parsing.
Type Aliases
- The public Result type for this library.