]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/staff-bracket.ly
The grand \paper -> \layout, \bookpaper -> \paper renaming.
[lilypond.git] / input / test / staff-bracket.ly
index 021e7a3a62d0d026a42786af6404acb510c356bc..9c6a256088c65f4a9130dd8bd8e2954245bc8885 100644 (file)
@@ -1,26 +1,45 @@
-\version "2.1.23"
+\version "2.3.22" 
 
-\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
-  }
+ \layout { raggedright = ##t}
 }