-\new StaffGroup \relative c' <<
- \new Staff {
- \set Staff.instrumentName = #"Piccolo"
- c1^"default" | c \break
- \set Staff.instrumentName = \markup { \hcenter-in #10 Piccolo }
- c1^"centered" | c \break
- \set Staff.instrumentName = \markup { \combine \hspace #8 Piccolo }
- c1^"left-aligned" | c
- }
- \new Staff {
- \set Staff.instrumentName = #"Flute"
- c1 | c \break
- \set Staff.instrumentName = \markup { \hcenter-in #10 Flute }
- c1 | c \break
- \set Staff.instrumentName = \markup { \combine \hspace #8 Flute }
- c1 | c
+\score {
+ \new StaffGroup <<
+ \new Staff {
+ \override Staff.InstrumentName #'self-alignment-X = #LEFT
+ \set Staff.instrumentName = \markup \left-column {
+ "Left aligned"
+ "instrument name"
+ }
+ \set Staff.shortInstrumentName = #"Left"
+ c''1
+ \break
+ c''1
+ }
+ \new Staff {
+ \override Staff.InstrumentName #'self-alignment-X = #CENTER
+ \set Staff.instrumentName = \markup \center-column {
+ Centered
+ "instrument name"
+ }
+ \set Staff.shortInstrumentName = #"Centered"
+ g'1
+ g'1
+ }
+ \new Staff {
+ \override Staff.InstrumentName #'self-alignment-X = #RIGHT
+ \set Staff.instrumentName = \markup \right-column {
+ "Right aligned"
+ "instrument name"
+ }
+ \set Staff.shortInstrumentName = #"Right"
+ e'1
+ e'1
+ }
+ >>
+ \layout {
+ ragged-right = ##t
+ indent = 4\cm
+ short-indent = 2\cm