- # if there is a width-block << should not be printed after StaffGroup but after the width-block
- # this seems to work. It prints \new StaffGroup \with{} <<:
-# if self.stafftype == "StaffGroup" and self.print_ly_overrides:
- #prints a new line before each new staff type, e.g. before \new StaffGroup and \new Staff...
- #printer.newline ()
-# printer.dump("\\new %s" % self.stafftype)
- #self.print_ly_overrides (printer)
- #prints a << and a new line after each new staff type.
- # printer.dump ("<<")
- # printer.newline()
- # print a << after all other staff types:
- # can't use "else:" because then we get a '\new None' staff type in LilyPond...
-# elif self.stafftype == "StaffGroup":
-# printer.dump ("\\new %s" % self.stafftype)
-# printer.dump ("<<")
-# printer.newline ()
- # << should be printed directly after StaffGroups without a with-block:
- # this doesn't work:
-# elif self.stafftype == "StaffGroup" and not self.print_ly_overrides:
-# printer.dump ("<<")
-# printer.newline ()
- # this is bullshit:
-# elif self.stafftype == "StaffGroup" and self.stafftype == "Staff":
-# printer.dump ("<<")
-# printer.newline ()
- # this prints \new Staff << for every staff in the score:
-# elif self.stafftype:
-# printer.dump ("\\new %s" % self.stafftype)
-# printer.dump ("<<")
-# printer.newline ()
- self.print_ly_overrides (printer)
- #printer.dump ("<<")
- #printer.newline ()