-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getChordDefinitions()
needs work
#1464
Comments
Hey @edonv. Thanks for reaching out! The implementation is based on the chordpro docs. This definition requires Besides the base fret, do you have some examples of definitions in chord sheets that are not or incorrectly parsed? |
Hmmm, I guess it does say imply that Regarding ones that don't work:
And I tried those after finding that
|
@edonv You're right, the grammar is too simple right now. Regarding your examples: from the docs I understand A-Z can be used as finger setting. I can imagine the grammar being case insensitive about all letters. But I really can't find examples of |
Oh lol I should've clarified that I only tried |
@edonv Thanks for reporting! I just published Please let me know if that correctly solves your issue 👍 |
Thanks for this as well! Here's my update:
|
Hey @edonv. I just published |
Thanks! So it's nearly there. Characters like Looking at the new Pattern for each can be:
This is obviously not all required, but the point is that the chord definition is made of 3 portions: the root note, the optional quality ( |
@edonv I just published |
Yes!! Sorry for all the fuss about it, this is perfect! I so appreciate all the hard work you put into this library!! Feel free to close the issue if there's nothing else to work on here. |
At first, I wasn't getting anything from it, but I think it's just that the parser is expecting
define
/chord
directives in too specific a format.It doesn't work if...
base-fret
is omitted, orfingers
are anything other than a single-digit number above0
.N
,x
,-
)The text was updated successfully, but these errors were encountered: