Desbeers / Chord-Provider

A ChordPro file parser and editor for macOS Sonoma. Show the song with the chords for guitar, guitalele or ukulele and export them to PDF.
https://desbeers.github.io/Chord-Provider/
GNU General Public License v3.0
68 stars 9 forks source link

Show custom chords from the editor with the define statement. #7

Closed SaschaMzH closed 1 year ago

SaschaMzH commented 1 year ago

With this implementation, the chords that can be defined in the editor are also displayed correctly. Unfortunately, a small modification had to be made to the self-defined chord. The chords are no longer recognized by their key and suffix but stored directly in it. Afterwards the class ChordPosition of SwiftyChords could be extended by a new constructor which also allows own chords. Finally the view was extended so that only chords with finger definition are displayed if they are present.

Desbeers commented 1 year ago

Thanks for your pull-request; a very useful addition!

The 'define parser' works great!

However, a few issues:

I would really like to merge this when above is fixed. Would you like to work on that or shall I merge it 'as is' and take it from there?

Screenshot 2022-10-20 at 15 46 04
SaschaMzH commented 1 year ago

Yes I will take care of this. I have to update my system.

SaschaMzH commented 1 year ago

A custom define will overwrite a standard define if the define will be at the beginning of the song. Before the the first use of a chord. this behaviour will have the possibility to have more definition for one chord.

Desbeers commented 1 year ago

Ah, I see! I did the define at the bottom. Still a bit confusing in the song view and diagrams. Reading the 'chord pro' site; they mark custom chords with an asterisk. I will just merge this; fix the macOS target and take it from there! Thanks!