]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/instrument-name-grandstaff.ly
* Documentation/user/notation.itely (Chords mode): typo: 13 -> 3.
[lilypond.git] / input / test / instrument-name-grandstaff.ly
index b93302b28586c85dad7eb5993f42b12fa03cd9ee..1f2ecbbc6d37b146ef48455c91c2d5cd67f59acf 100644 (file)
@@ -1,18 +1,19 @@
-
+\version "2.3.2"
+\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 <
+  \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 }>
+      \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"; }
+raggedright = ##t
+\context { \GrandStaff \consists "Instrument_name_engraver" }
 }}
+