Expand description
A library for reading, writing and creating MIDI files.
!
Modules§
- core
- 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. ! - file
- 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§
- Error
- The public Error type for this library.
- Midi
File - Represents a MIDI file, which consists of a header identifying the type of MIDI file, and tracks with MIDI data.
- Settings
- Optionally provide settings to the
MidiFile
. This is a ‘builder’ struct.
Enums§
- Text
- 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§
- Result
- The public Result type for this library.