Function octave_position_to_note_name

Source
pub fn octave_position_to_note_name(note: u8) -> Option<&'static str>
Expand description

Convert an octave position to a note name

ยงExample

use music_math::midi;
let note = 0;
let note_name = midi::octave_position_to_note_name(note).unwrap();
assert_eq!(note_name, "C");