Function note_name_to_octave_position

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

Convert a note name to it’s position in the octave

§Example

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