pub fn parse_interval(value: &str) -> Result<Interval, PitchError>Expand description
Parses one of the recognized interval tokens ("P5", "m3", "M7", "TT")
into an Interval.
Returns PitchError::InvalidInterval for any unrecognized token.
pub fn parse_interval(value: &str) -> Result<Interval, PitchError>Parses one of the recognized interval tokens ("P5", "m3", "M7", "TT")
into an Interval.
Returns PitchError::InvalidInterval for any unrecognized token.