Open jpfudger opened 6 years ago
Once we have a list of decorators, we could document them. Imagine that!
"Willie the Weeper" has the lyrics: "Ba-da Ba-da Ba-da-da", which are currently being detected as chords. A new detection technique should resolve this.
Currently any word is considered to be a chord if it begins with a note name, with some miserable hard-coded exceptions.
A better method would be to extract the root note (and/or trailing bass note) and then check if the remaining chord decorator is valid.
A list of valid decorators (e.g.
m
,dim
,maj7
, ...) could readily be built by scanning our existing html for<div class=chord>
.