]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/instrument-name-groups.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / input / regression / instrument-name-groups.ly
1 \version "2.14.0"
2 \header {
3   texidoc="
4 Instrument names can also be attached to staff groups.
5 "
6 }
7
8 \paper {
9   left-margin = 3\cm
10 }
11 \layout {
12   ragged-right = ##t
13 }
14
15
16 \new StaffGroup \with { instrumentName = #"StaffGroup" } <<
17   \new PianoStaff \with { instrumentName = #"PianoStaff" } <<
18     \new Staff \with { instrumentName = #"Right" } { c''4 }
19     \new Staff \with { instrumentName = #"Left" } { \clef bass c4 }
20   >>
21
22   \new ChoirStaff \with { instrumentName = #"ChoirStaff" } <<
23     \new Staff { c''4 }
24     \new Staff { c''4 }
25     \new Staff { c''4 }
26   >>
27   \new GrandStaff \with { instrumentName = #"GrandStaff" } <<
28     \new Staff \with { instrumentName = #"I" } { c''4 }
29     \new Staff \with { instrumentName = #"II" } { \clef bass c4 }
30   >>
31   % Nested groups should not inherit the instrument name from the parent group
32   \new StaffGroup \with { instrumentName = #"nested group" } <<
33     \new Staff { c''4 }
34     \new StaffGroup <<
35       \new Staff { c''4 }
36       \new Staff { c''4 }
37     >>
38   >>
39 >>