Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 3a7b4dfc766af1222d90c7f03a0844e6 > files > 7371

lilypond-doc-2.11.57-1mdv2009.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- header_tag -->
<html lang="en">
<head>
<title>Grouping staves - GNU LilyPond Notation Reference</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="GNU LilyPond Notation Reference">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Displaying-staves.html#Displaying-staves" title="Displaying staves">
<link rel="prev" href="Instantiating-new-staves.html#Instantiating-new-staves" title="Instantiating new staves">
<link rel="next" href="Deeper-nested-staff-groups.html#Deeper-nested-staff-groups" title="Deeper nested staff groups">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
Copyright (C) 1999--2007 by the authors

     Permission is granted to copy, distribute and/or modify this
     document under the terms of the GNU Free Documentation License,
     Version 1.1 or any later version published by the Free Software
     Foundation; with no Invariant Sections.  A copy of the license is
     included in the section entitled ``GNU Free Documentation
     License''.
   -->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
hr { border:0; height:1; color: #000000; background-color: #000000; }
/* hr {
  border:  none;
  height: 1px;
  color: #666666;
  background-color: #666666;
}
body {
  border-left: 1px solid #666666;
  border-right: 1px solid #666666;
  color: #332d28;
  margin-right: auto;
  margin-left: auto;
  width: 60em;
  list-style-type: square;
  font-family: Arial,Helvetica,sans-serif;
  padding-right: 1em;
  padding-left: 1em;
}
a {
  border-bottom: 1px dashed #344242;
  text-decoration: none;
  color: #344242;
}
a:link {
  text-decoration: none;
}
a:visited {
  border-bottom: 1px dashed #666666;
  color: #666666;
}
a:active {
  border-bottom: 1px solid #00cccc;
  color: #00cccc;
}
a:hover {
  border-bottom: 1px solid #1d7b85;
  color: #1d7b85;
}
blockquote {
  border: 1px solid #cccccc;
  padding: 3px;
  width: 40em;
}
.node {
  border-left: 1px solid #666666;
  margin: -0.5em 0px 1em;
  padding: 2px 1px 0px;
  font-style: italic;
}
.node a {
  border:  none;
  text-decoration: underline;
  font-style: normal;
  font-weight: bold;
}
.verbatim {
  font-family: "Courier New",Courier,monospace;
}
.unnumberedsubsubsec {
  font-size: large;
  color: #1d7b85;
}
.subsubheading {
  font-size: large;
  color: #3b220d;
}
.contents {
  border: 1px dashed #339999;
  margin: 3px 2em;
  list-style-type: square;
  padding-right: 1em;
  width: 40em;
  background-color: #fcfff9;
}
.contents a {
  border-bottom: 1px dashed #423d34;
  text-decoration: none;
  color: #423d34;
}
.contents a:visited {
  border-bottom: 1px dashed #666666;
  color: #666666;
}
.contents a:active {
  border-bottom: 1px solid #f0d86d;
  color: #f0d86d;
}
.contents a:hover {
  border-bottom: 1px solid #3b220d;
  color: #3b220d;
}
.menu {
  border-left: 1px dashed #339999;
  margin: 3px 2em 1em;
  list-style-type: square;
  padding-left: 1.4em;
  width: 40em;
}
.unnumbered {
}
h2 {
  font-size: x-large;
  color: #1d7b85;
}
*/
--></style>
</head>
<BODY BGCOLOR=WHITE TEXT=BLACK>

<div class="node">
<p>
<a name="Grouping-staves"></a>
Next:&nbsp;<a rel="next" accesskey="n" href="Deeper-nested-staff-groups.html#Deeper-nested-staff-groups">Deeper nested staff groups</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Instantiating-new-staves.html#Instantiating-new-staves">Instantiating new staves</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Displaying-staves.html#Displaying-staves">Displaying staves</a>
<hr>
</div>

<h5 class="unnumberedsubsubsec">Grouping staves</h5>

<p><a name="index-start-of-system-1337"></a><a name="index-staff_002c-multiple-1338"></a><a name="index-staves_002c-multiple-1339"></a><a name="index-system-start-delimiters-1340"></a><a name="index-bracket_002c-vertical-1341"></a><a name="index-brace_002c-vertical-1342"></a><a name="index-choir-staff-1343"></a><a name="index-grand-staff-1344"></a><a name="index-piano-staff-1345"></a><a name="index-staff-group-1346"></a><a name="index-staff_002c-choir-1347"></a><a name="index-staff_002c-piano-1348"></a><a name="index-system-1349"></a>
Various contexts exist to group single staves together in order to
form multi-stave systems.  Each grouping context sets the style of
the system start delimiter and the behavior of bar lines.

   <p>If no context is specified, the default properties will be used:
the group is started with a vertical line, and the bar lines are
not connected.

   <blockquote>
<pre class="verbatim">     
     &lt;&lt;
       \new Staff { c1 c }
       \new Staff { c1 c }
     >>
</pre>
     <p>
 <a href="../f0/lily-74604fcd.ly">
  <img align="middle"
    border="0" src="../f0/lily-74604fcd.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

   <p>In the <code>StaffGroup</code> context, the group is started with a
bracket and bar lines are drawn through all the staves.

   <blockquote>
<pre class="verbatim">     
     \new StaffGroup &lt;&lt;
       \new Staff { c1 c }
       \new Staff { c1 c }
     >>
</pre>
     <p>
 <a href="../88/lily-5b3b7564.ly">
  <img align="middle"
    border="0" src="../88/lily-5b3b7564.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

   <p>In a <code>ChoirStaff</code>, the group starts with a bracket, but bar
lines are not connected.

   <blockquote>
<pre class="verbatim">     
     \new ChoirStaff &lt;&lt;
       \new Staff { c1 c }
       \new Staff { c1 c }
     >>
</pre>
     <p>
 <a href="../48/lily-b97811fe.ly">
  <img align="middle"
    border="0" src="../48/lily-b97811fe.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

   <p>In a <code>GrandStaff</code>, the group begins with a brace, and bar
lines are connected between the staves.

   <blockquote>
<pre class="verbatim">     
     \new GrandStaff &lt;&lt;
       \new Staff { c1 c }
       \new Staff { c1 c }
     >>
</pre>
     <p>
 <a href="../21/lily-9e8186d3.ly">
  <img align="middle"
    border="0" src="../21/lily-9e8186d3.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

   <p>The <code>PianoStaff</code> is identical to a <code>GrandStaff</code>, except
that it supports printing the instrument name directly.  For
details, see <a href="Instrument-names.html#Instrument-names">Instrument names</a>.

   <blockquote>
<pre class="verbatim">     
     \new PianoStaff &lt;&lt;
       \set PianoStaff.instrumentName = "Piano"
       \new Staff { c1 c }
       \new Staff { c1 c }
     >>
</pre>
     <p>
 <a href="../6f/lily-9f8ab9ce.ly">
  <img align="middle"
    border="0" src="../6f/lily-9f8ab9ce.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

   <p>Each staff group context sets the property
<code>systemStartDelimiter</code> to one of the following values:
<code>SystemStartBar</code>, <code>SystemStartBrace</code>, or
<code>SystemStartBracket</code>.  A fourth delimiter,
<code>SystemStartSquare</code>, is also available, but it must be
explicitly specified.

<p class="noindent">

<h5 class="subsubheading">Selected Snippets</h5>

<p><em>Use square bracket at the start of a staff group</em>

   <p>The system start delimiter <code>SystemStartSquare</code> can be used by
setting it explicitly in a <code>StaffGroup</code> or <code>ChoirStaffGroup</code>
context.

   <blockquote>
<pre class="verbatim">     
     \score {
       \new StaffGroup { &lt;&lt; 
       \set StaffGroup.systemStartDelimiter = #'SystemStartSquare
         \new Staff { c'4 d' e' f' }
         \new Staff { c'4 d' e' f' }
       >> }
     }
</pre>
     <p>
 <a href="../f5/lily-49c1d051.ly">
  <img align="middle"
    border="0" src="../f5/lily-49c1d051.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

   <p><em>Display bracket with only one staff in a system</em>

   <p>If there is only one staff in one of the staff types
<code>ChoirStaff</code>, <code>InnerChoirStaff</code>, <code>InnerStaffGroup</code>
or <code>StaffGroup</code>, the bracket and the starting bar line will not
be displayed as standard behavior.  This can be changed by overriding
the relevant properties, as demonstrated in this example.

   <p>Note that in contexts such as <code>PianoStaff</code> and <code>GrandStaff</code>
where the systems begin with a brace instead of a bracket, another
property has to be set, as shown on the second system in the example.

   <blockquote>
<pre class="verbatim">     
     \markup \column {
       \score {
         \new StaffGroup &lt;&lt;
           % Must be lower than the actual number of staff lines
           \override StaffGroup.SystemStartBracket #'collapse-height = #1
           \override Score.SystemStartBar #'collapse-height = #1
           \new Staff {
             c'1
           }
         >>
         \layout { }
       }
       \score {
         \new PianoStaff &lt;&lt;
           \override PianoStaff.SystemStartBrace #'collapse-height = #1
           \override Score.SystemStartBar #'collapse-height = #1
           \new Staff {
             c'1
           }
         >>
         \layout { }
       }
     }
</pre>
     <p>
 <a href="../f8/lily-68334250.ly">
  <img align="middle"
    border="0" src="../f8/lily-68334250.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

   <p><a name="index-mensurstriche-layout-1350"></a><a name="index-renaissance-music-1351"></a><a name="index-transcription-of-mensural-music-1352"></a><a name="index-mensural-music_002c-transcription-of-1353"></a>
<em>Mensurstriche layout (bar lines between the staves)</em>

   <p>The mensurstriche-layout where the bar lines do not show on the staves
but between staves can be achieved with a <code>StaffGroup</code> instead of
a <code>ChoirStaff</code>.  The bar line on staves is blanked out by setting
the <code>transparent</code> property.

   <blockquote>
<pre class="verbatim">     
     global = {
       \override Staff.BarLine #'transparent = ##t
       s1 s
       % the final bar line is not interrupted
       \revert Staff.BarLine #'transparent
       \bar "|."
     }
     \new StaffGroup \relative c'' {
       &lt;&lt;
         \new Staff { &lt;&lt; \global { c1 c } >> }
         \new Staff { &lt;&lt; \global { c c } >> }
       >>
     }
</pre>
     <p>
 <a href="../9e/lily-559d109a.ly">
  <img align="middle"
    border="0" src="../9e/lily-559d109a.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

<!-- FIXME: move to NR 2.8.x when sectioning is ready -->
<p class="noindent">

<h5 class="subsubheading">See also</h5>

   <p class="indent">

   <p>Music Glossary:
<a name="index-brace-1354"></a><a href="../music-glossary/brace.html#brace">brace</a>,
<a name="index-bracket-1355"></a><a href="../music-glossary/bracket.html#bracket">bracket</a>,
<a name="index-grand-staff-1356"></a><a href="../music-glossary/grand-staff.html#grand-staff">grand staff</a>.

   <p>Notation Reference:
<a href="Instrument-names.html#Instrument-names">Instrument names</a>.

   <p>Snippets:
<a href="../../../input/lsr/lilypond-snippets/Staff-notation.html#Staff-notation">Staff notation</a>.

   <p>Internals Reference:
<a name="index-Staff-1357"></a><a href="../lilypond-internals/Staff.html#Staff">Staff</a>,
<a name="index-StaffGroup-1358"></a><a href="../lilypond-internals/StaffGroup.html#StaffGroup">StaffGroup</a>,
<a name="index-ChoirStaff-1359"></a><a href="../lilypond-internals/ChoirStaff.html#ChoirStaff">ChoirStaff</a>,
<a name="index-GrandStaff-1360"></a><a href="../lilypond-internals/GrandStaff.html#GrandStaff">GrandStaff</a>,
<a name="index-PianoStaff-1361"></a><a href="../lilypond-internals/PianoStaff.html#PianoStaff">PianoStaff</a>,
<a name="index-SystemStartBar-1362"></a><a href="../lilypond-internals/SystemStartBar.html#SystemStartBar">SystemStartBar</a>,
<a name="index-SystemStartBrace-1363"></a><a href="../lilypond-internals/SystemStartBrace.html#SystemStartBrace">SystemStartBrace</a>,
<a name="index-SystemStartBracket-1364"></a><a href="../lilypond-internals/SystemStartBracket.html#SystemStartBracket">SystemStartBracket</a>,
<a name="index-SystemStartSquare-1365"></a><a href="../lilypond-internals/SystemStartSquare.html#SystemStartSquare">SystemStartSquare</a>.

   <!-- footer_tag --><br><hr>
<div class="node">
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Deeper-nested-staff-groups.html#Deeper-nested-staff-groups">Deeper nested staff groups</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Instantiating-new-staves.html#Instantiating-new-staves">Instantiating new staves</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Displaying-staves.html#Displaying-staves">Displaying staves</a>
</div>

<div style="background-color: #e8ffe8; padding: 2; border: #c0ffc0 1px solid;">
<p>
<font size="-1">
This page is for LilyPond-2.11.57 (development-branch).
<br>
<address>
Report errors to <a href="http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs">http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs</a>. </address>
<br>
Your <a href="http://lilypond.org/web/devel/participating/documentation-adding">suggestions for the documentation</a> are welcome.
</font>
</p>
</div>


<P>
 Other languages: <a href="Grouping-staves.fr.html">français</a>.
 <BR>
 
</P>
</BODY></html>