Module midi

Source
Expand description

MIDI operations module.

Constants§

MIDI_NOTE_NAMES
MIDI note names
NOTE_NAMES
Note names for MIDI notes

Functions§

get_midi_note_name
Get the note name for a given midi note
get_midinote_from_name
Get the midi note for a given note name
note_name_to_octave_position
Convert a note name to it’s position in the octave
octave_position_to_note_name
Convert an octave position to a note name
to_frequency
Map a midi note to a frequency
transpose
Transpose a midi value, safely keeping it within the bounds of the range 0-127.