pub fn representation(name: &str) -> Option<i32>
music21’s base40Representation: the number of the octave a pitch name is, for the thirty-five names base 40 has.
base40Representation