X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Fmusicexp.py;h=ea2525d866e4085e3adb90de929a7ebd91ac4f53;hb=7f96f595916833f1d3e96b1a6e0d8c617703e534;hp=d105ef333d2bfb8f50f2dba428b4fbb00caf29e0;hpb=c4d028afdec2ee6e3cbbd661ed750ee9f5cf4c8f;p=lilypond.git diff --git a/python/musicexp.py b/python/musicexp.py index d105ef333d..ea2525d866 100644 --- a/python/musicexp.py +++ b/python/musicexp.py @@ -1793,7 +1793,7 @@ class StaffGroup: if self.spanbar == "no": printer.dump ("\\override SpanBar #'transparent = ##t") brack = {"brace": "SystemStartBrace", - "none": "f", + "none": "SystemStartBar", "line": "SystemStartSquare"}.get (self.symbol, None) if brack: printer.dump ("systemStartDelimiter = #'%s" % brack) @@ -1807,7 +1807,18 @@ class StaffGroup: printer.dump (m) printer.dump ("}") + def print_ly_chords (self,printer): + try: + for [staff_id, voices] in self.part_information: + for [v, lyrics, figuredbass, chordnames] in voices: + if chordnames: + printer ('\context ChordNames = "%s" \\%s' % (chordnames, chordnames)) + printer.newline () + except TypeError: + return + def print_ly (self, printer): + self.print_ly_chords (printer) if self.stafftype: printer.dump ("\\new %s" % self.stafftype) self.print_ly_overrides (printer) @@ -1848,12 +1859,6 @@ class Staff (StaffGroup): sub_staff_type = self.stafftype for [staff_id, voices] in self.part_information: - # Chord names need to come before the staff itself! - for [v, lyrics, figuredbass, chordnames] in voices: - if chordnames: - printer ('\context ChordNames = "%s" \\%s' % (chordnames, chordnames)) - - # now comes the real staff definition: if staff_id: printer ('\\context %s = "%s" << ' % (sub_staff_type, staff_id)) else: