ExMidi.MidiUtil (ex_midi v0.1.0)

Copy Markdown View Source

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 a track's event delta times to the nearest multiple of boundary.

Convert a sequence to text representation.

Convert a track to text representation.

Functions

bpm_to_mpq(bpm)

Convert BPM to microseconds per quarter note.

event_to_text(event)

Convert an event to text representation.

event_to_text(event, show_chan_events)

mpq_to_bpm(mpq)

Convert microseconds per quarter note to BPM.

note_length(atom)

Returns the length of a note type in beats.

note_names()

Returns the list of note names.

note_to_string(num)

Convert a MIDI note number to a string like "C4".

quantize(events, boundary)

Quantize a track's event delta times to the nearest multiple of boundary.

seq_to_text(seq)

Convert a sequence to text representation.

seq_to_text(arg, show_chan_events)

track_to_text(track)

Convert a track to text representation.

track_to_text(track, show_chan_events)