]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/instrument-name-grandstaff.ly
* scripts/convert-ly.py (conv): fixed \context Foo = mixedCaps
[lilypond.git] / input / test / instrument-name-grandstaff.ly
index edb46a411b3e582a0428639e7a2905aeea04f305..3b93ef4ea542258edb15a5bb7ef5a50565ccb758 100644 (file)
@@ -1,19 +1,19 @@
-\version "1.5.68"
-
+\version "2.4.0"
+\header { texidoc = "@cindex Instrument Name Grandstaff
+You can have a name for the whole @code{GrandStaff} in addition to 
+individual @code{Staff}s. " }
 
 \score {
-  \notes
-  \notes \context GrandStaff <
-    \context Staff = treble    {
-      \property GrandStaff.instrument = "Violini  "
-      \property Staff.instrument = " vn I" { c''4 }}
-    \context Staff = bass { \property Staff.instrument = " vn II" c''4 }>
+  
+   \context GrandStaff <<
+    \context Staff = "treble"    {
+      \set GrandStaff.instrument = "Violini  "
+      \set Staff.instrument = " vn I" { c''4 }}
+    \context Staff = "bass" { \set Staff.instrument = " vn II" c''4 }>>
 
 
-\paper {
-linewidth=-1.0
-\translator { \StaffContext
-  \consists "Instrument_name_engraver"
-  }
-\translator { \GrandStaffContext \consists "Instrument_name_engraver" }
+\layout {
+raggedright = ##t
+\context { \GrandStaff \consists "Instrument_name_engraver" }
 }}
+