Utility functions for MIDI data.
Summary
Functions
Convert BPM to microseconds per quarter note.
Convert an event to text representation.
Convert microseconds per quarter note to BPM.
Returns the length of a note type in beats.
Returns the list of note names.
Convert a MIDI note number to a string like "C4".
Quantize event delta times so that every event's absolute position falls on
the nearest multiple of boundary (in ticks/beats).
Convert a sequence to text representation.
Convert a track to text representation.
Functions
Convert BPM to microseconds per quarter note.
Convert an event to text representation.
Convert microseconds per quarter note to BPM.
Returns the length of a note type in beats.
Returns the list of note names.
Convert a MIDI note number to a string like "C4".
@spec quantize( {:track, [tuple()]}, pos_integer() ) :: {:track, [tuple()]}
@spec quantize([tuple()], pos_integer()) :: [tuple()]
Quantize event delta times so that every event's absolute position falls on
the nearest multiple of boundary (in ticks/beats).
Accepts either a {:track, events} tuple or a bare event list and returns
the same shape.
Convert a sequence to text representation.
Convert a track to text representation.