Crate midi_file[][src]

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.

MidiFile

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 Definitions

Result

The public Result type for this library.