]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/staff-bracket.ly
* scripts/convert-ly.py (conv): remove \notes.
[lilypond.git] / input / test / staff-bracket.ly
index 143878780fe9f7e3b21c9344eeb642fe69481928..1399e32c4339d51f39068122f41b7a5d01f0937c 100644 (file)
@@ -1,27 +1,45 @@
-#(ly:set-option 'old-relative)
-\version "1.9.2"
+\version "2.3.4" 
 
-\header{texidoc = "@cindex Staff Bracket
-Here's an example of staff brackets. "
+\header{ texidoc="@cindex Nested Staff Groups
+Staffs can be nested in various combinations. Here, @code{StaffGroup}
+and @code{ChoirStaff} produce similar straight brackets, whereas 
+@code{GrandStaff} produces curly brackets. In @code{InnerStaffGroup} 
+and @code{InnerChoirStaff}, the brackets are shifted leftwards.
+
+"
 }
 
-\score
-{
-  \new StaffGroup \notes \relative c'' <
-      \new Staff {  b1 }
-    \new PianoStaff <
-      \new Staff \notes { b1 }
-      \new Staff \notes { b1 }
-    > 
-  >
+\score { 
+<<
+  \new StaffGroup << 
+  \new Staff {c' d' e' f'}
+  \new InnerStaffGroup <<
+   \new Staff {c' d' e' f'}
+   \new GrandStaff <<
+     \new Staff {c' d' e' f'}
+     \new Staff {c' d' e' f'}
+   >>
+  \new Staff {c' d' e' f'}
+  >>
+  \new ChoirStaff <<
+   \new Staff {c' d' e' f'}
+    \new InnerStaffGroup <<
+     \new Staff {c' d' e' f'}
+    >>
+   \new Staff {c' d' e' f'}
+  >>
+  >>
+  \new ChoirStaff << 
+   \new Staff {c' d' e' f'}
+   \new InnerChoirStaff <<
+    \new Staff {c' d' e' f'}
+    \new Staff {c' d' e' f'}
+   >>
+   \new Staff {c' d' e' f'}
+  >>
+
+>>
 
-  \paper {
-    \translator
-    {
-      \StaffContext
-      \consists Instrument_name_engraver
-    }
-    raggedright=##t
-  }
+ \paper { raggedright = ##t}
 }