no-chris / chord-symbol

The definitive chord symbol parser and renderer for Javascript/NodeJS.
https://chord-symbol.netlify.app
MIT License
151 stars 8 forks source link

Question: How would you get all notes back for a chord with bass #612

Closed perivar closed 1 year ago

perivar commented 1 year ago

How would you get back all notes when you parse a chord with a bass note?

E.g. the Chord DMaj7/G contain only the Dmaj7 notes in the notes array. The G is not included.

input": { "symbol": "DMAJ7/G", }, "notes": [ "D", "F#", "A", "C#" ]

no-chris commented 1 year ago

Well if it's an inversion then the bass is already part of the chord, e.g. C/E => C, E, G

If it's not an inversion then I wouldn't expect it to be in the notes array, but you can get it from the normalized.bassNote property

Does that makes sense?

Thanks

perivar commented 1 year ago

Yes thank you.