Skip to main content

parse_chord

Function parse_chord 

Source
pub fn parse_chord(text: &str) -> Result<ChordSymbol, MusicError>
Expand description

Parses a chord symbol such as Cmaj7, F#m7b5, Bb7(b9), C13b9 or C/E.

ยงErrors

MusicError::UnsupportedChord naming the symbol when its spelling is not in the dictionary, and MusicError::BrokenData when the dictionary does not load.