audioflux.utils.note_to_midi
- audioflux.utils.note_to_midi(note)
Convert note to MIDI number.
- Parameters
- note: str
note names.
- Returns
- out: int
MIDI number
Examples
>>> import audioflux as af >>> af.utils.note_to_midi('C1') 24 >>> af.utils.note_to_midi('D#2') 39 >>> af.utils.note_to_midi('#F4') 66 >>> af.utils.note_to_midi('Gb4') 66