]> git.donarmstrong.com Git - lilypond.git/blob - input/bugs/gr-instrument.ly
patch::: 1.3.134.jcn1
[lilypond.git] / input / bugs / gr-instrument.ly
1 %{
2 instrument names on grandstaffs. GR is centered on entire score
3 %}
4
5
6 \include "paper20.ly"
7 \header{
8         latexpackages = "amsmath";
9 }
10
11 \score{
12   \notes <
13   \context Staff = sa {\property Staff.instrument = "A" g,2 c''''2}
14   \context Staff = sb {\property Staff.instrument = "B" g,2 c''''2}
15   \context GrandStaff=gs <
16     \property GrandStaff.instrument = "Gr"
17     \context Staff = ga {\property Staff.instrument = "" c''1 }
18     \context Staff = gb {\property Staff.instrument = "" c''1 }
19   >
20   \context Staff = sc {\property Staff.instrument = "foobar"
21 % "\small$\mathrm{\genfrac{}{}{0pt}{0}{C}{D}}$"
22
23 <g'1 c''> }
24   \context Staff = sd {\property Staff.instrument = "E" c''1 }
25
26   >
27   \paper{
28     \translator { 
29       \StaffContext
30       \consists "Instrument_name_engraver";
31     }
32     \translator { 
33       \GrandStaffContext
34       \consists "Instrument_name_engraver";
35     }
36
37   }
38 }
39
40
41
42