forked from openlp/openlp
Small fixes
This commit is contained in:
parent
fe8aa2a9e3
commit
805b7a83eb
@ -103,6 +103,8 @@ class EditVerseForm(QtWidgets.QDialog, Ui_EditVerseDialog):
|
||||
"""
|
||||
transposed_lyrics = transpose_lyrics(self.verse_text_edit.toPlainText(), 1)
|
||||
self.verse_text_edit.setPlainText(transposed_lyrics)
|
||||
self.verse_text_edit.setFocus()
|
||||
self.verse_text_edit.moveCursor(QtGui.QTextCursor.End)
|
||||
|
||||
def on_transepose_down_button_clicked(self):
|
||||
"""
|
||||
@ -110,6 +112,8 @@ class EditVerseForm(QtWidgets.QDialog, Ui_EditVerseDialog):
|
||||
"""
|
||||
transposed_lyrics = transpose_lyrics(self.verse_text_edit.toPlainText(), -1)
|
||||
self.verse_text_edit.setPlainText(transposed_lyrics)
|
||||
self.verse_text_edit.setFocus()
|
||||
self.verse_text_edit.moveCursor(QtGui.QTextCursor.End)
|
||||
|
||||
def update_suggested_verse_number(self):
|
||||
"""
|
||||
|
@ -619,15 +619,10 @@ def transpose_chord(chord, transpose_value, notation):
|
||||
notes_flat_notation['neo-latin'] = ['Do','Reb','Re','Mib','Fab','Fa','Solb','Sol','Lab','La','Sib','Si']
|
||||
chord_split = chord.replace('♭', 'b').split('/[\/\(\)]/')
|
||||
transposed_chord = ''
|
||||
note = ''
|
||||
notenumber = -1
|
||||
rest = ''
|
||||
current_chord = ''
|
||||
last_chord = ''
|
||||
notes_sharp = notes_sharp_notation[notation]
|
||||
notes_flat = notes_flat_notation[notation]
|
||||
notes_preferred = ['b','#','#','#','#','#','#','#','#','#','#','#']
|
||||
chord_notes = []
|
||||
for i in range(0, len(chord_split)):
|
||||
if i > 0:
|
||||
transposed_chord += '/'
|
||||
|
Loading…
Reference in New Issue
Block a user