Skip to main content

chord_symbol_figure_from_chord

Function chord_symbol_figure_from_chord 

Source
pub fn chord_symbol_figure_from_chord(chord: &Chord) -> Result<Option<String>>
Expand description

Names a chord as a lead-sheet symbol: music21’s chordSymbolFigureFromChord, so C E G B- is C7, E G C is C/E and a lone C is Cpedal. Notes the kind cannot account for are listed after add, and beside them the notes the kind expects but the chord lacks after omit, as music21 writes them. None when no kind fits, where music21 returns the sentence “Chord Symbol Cannot Be Identified”; an empty chord gives an empty string. The parts the figure is written from are ChordSymbolFigure.