Skip to main content

parse_interval

Function parse_interval 

Source
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.