Alignement des noms d’instrument
L’alignement horizontal des noms d’instrument se gère à l’aide de la
propriété self-alignment-X de l’objet InstrumentName
(habitullement attaché à un contexte Staff). Les variables
indent et short-indent, attachées au bloc \layout,
déterminent l’espace alloué à l’alignement des noms d’instrument,
respectivement dans leurs formes développée et abrégée.
\paper {
left-margin = 3\cm
}
\new StaffGroup <<
\new Staff \with {
\override InstrumentName.self-alignment-X = #LEFT
instrumentName = \markup \left-column { "Left aligned"
"instrument name" }
shortInstrumentName = "Left"
} {
c''1 \break c''1
}
\new Staff \with {
\override InstrumentName.self-alignment-X = #CENTER
instrumentName = \markup \center-column { Centered
"instrument name" }
shortInstrumentName = "Centered"
} {
g'1 g'1
}
\new Staff \with {
\override InstrumentName.self-alignment-X = #RIGHT
instrumentName = \markup \right-column { "Right aligned"
"instrument name" }
shortInstrumentName = "Right"
} {
e'1 e'1
}
>>
\layout {
indent = 4\cm
short-indent = 2\cm
line-width = 6.5\cm
}