Support "|" as "barline" in chords layer

This commit is contained in:
STEPHANVS 2021-07-08 10:36:19 +02:00
parent 3311d0e5c5
commit 85cf4f9c8c
No known key found for this signature in database
GPG Key ID: 4EFE47E471FD62A9

View File

@ -646,6 +646,12 @@ def transpose_chord(chord, transpose_value, notation):
current_chord = current_chord[1:]
else:
current_chord = ''
if current_chord and current_chord[0] == '|':
transposed_chord += '|'
if len(current_chord) > 1:
current_chord = current_chord[1:]
else:
current_chord = ''
if len(current_chord) > 0:
if len(current_chord) > 1:
if '#b'.find(current_chord[1]) == -1: