Musical chord parser, formatter, and disambiguator