]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/instrument-name-grandstaff.ly
Add scons cruft.
[lilypond.git] / input / test / instrument-name-grandstaff.ly
index 4e4017467ea5f6c9adfad6ea0bc92d7ad5e69242..ee6d86b56a10c2dbb91c34140f0bf6a4c3edde5a 100644 (file)
@@ -1,18 +1,19 @@
-\version "1.3.96";
+\version "2.10.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 }>
+  
+   \new GrandStaff <<
+    \new Staff =  "treble"    {
+      \set GrandStaff.instrumentName = "Violini  "
+      \set Staff.instrumentName = " vn I" { c''4 }}
+    \new Staff =  "bass" { \set Staff.instrumentName = " vn II" c''4 }>>
 
 
-\paper {
-linewidth=-1.0;
-\translator { \StaffContext
-  \consists "Instrument_name_engraver";
-  }
-\translator { \GrandStaffContext \consists "Instrument_name_engraver"; }
+\layout {
+ragged-right = ##t
+\context { \GrandStaff \consists "Instrument_name_engraver" }
 }}
+