]> 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 a20e5b46b50cfa2c8fdf97b4b975005851ffdafe..9c6a256088c65f4a9130dd8bd8e2954245bc8885 100644 (file)
@@ -1,26 +1,45 @@
-\version "1.7.18"
+\version "2.3.22" 
 
-\score
-{
-  \context StaffGroup = a < 
-    % this is broken until further notice -- see refman
-    % \property Staff.StaffSymbol \override #'line-count = #4
-    \context Staff \outputproperty #(make-type-checker 'staff-symbol-interface)
-      #'line-count = #4
-    \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
-    }
-  }
+"
 }
-%% new-chords-done %%
+
+\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'}
+  >>
+
+>>
+
+ \layout { raggedright = ##t}
+}
+