]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/staff-bracket.ly
(conv): add 2.2.0 rule.
[lilypond.git] / input / test / staff-bracket.ly
index 4b7b118c65d8dc6ef64dee36d871f9d925ee7460..b7f2ae3e0542321a09cd621637482627e06d8c93 100644 (file)
@@ -1,23 +1,45 @@
-\version "1.3.146"
+\version "2.1.36" 
 
-\score
-{
-  \context StaffGroup = a < 
-    \context PianoStaff = b <
-      \context Staff = "c" \notes\relative c'' { b1 }
-      \context Staff = "d" \notes\relative c'' { b1 }
-    >
-  >
+\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.
 
-  \paper {
-       indent=100.0\mm
-       linewidth=150.0\mm
-    \translator
-    {
-      \StaffContext
-      \consists Instrument_name_engraver
-       numberOfStaffLines  = #1
-      
-    }
-  }
+"
 }
+
+\score { \notes
+<<
+  \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 { raggedright = ##t}
+}
+