parse static method
Implementation
static Chord parse(String chordName) {
final match = _cordNamePattern.matchAsPrefix(chordName);
if (match == null)
throw new FormatException("invalid Chord name: $chordName");
final chordClass = ChordPattern.parse(match[2]!);
return chordClass.at(Pitch.parse(match[1]!));
}