Sophie

Sophie

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

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>Bar lines - 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="Bars.html#Bars" title="Bars">
<link rel="next" href="Bar-numbers.html#Bar-numbers" title="Bar numbers">
<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="Bar-lines"></a>
Next:&nbsp;<a rel="next" accesskey="n" href="Bar-numbers.html#Bar-numbers">Bar numbers</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Bars.html#Bars">Bars</a>
<hr>
</div>

<h5 class="subsubsection">1.2.5.1 Bar lines</h5>

<p><a name="index-bar-lines-638"></a><a name="index-g_t_005cbar-639"></a><a name="index-g_t_005cbar-640"></a>
<a name="index-measure-lines-641"></a><a name="index-repeat-bars-642"></a>
Bar lines delimit measures, and are also used to indicate
repeats.  Normally, simple bar lines are automatically inserted
into the printed output at places based on the current time
signature.

   <p>The simple bar lines inserted automatically can be changed to
other types with the <code>\bar</code> command.  For example, a closing
double bar line is usually placed at the end of a piece:

   <blockquote>
<pre class="verbatim">     
     e4 d c2 \bar "|."
</pre>
     <p>
 <a href="../93/lily-311cee93.ly">
  <img align="middle"
    border="0" src="../93/lily-311cee93.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

<!-- TODO - make this warning more clear.  What does it mean? -->
   <p><table class="cartouche" summary="cartouche" border="1"><tr><td>
<b>Note:</b> An incorrect duration can lead to poorly formatted
music. 
</td></tr></table>

<!-- TODO - check this.  I think this behavior no longer happens -->
<!-- with completion_heads_engraver, but it may with note_heads_engraver -->
<!-- Make an example showing the problem -->
   <p>It is not invalid if the final note in a measure does not
end on the automatically entered bar line: the note is assumed
to carry over into the next measure.  But if a long sequence
of such carry-over measures appears the music can appear compressed
or even flowing off the page.  This is because automatic line
breaks happen only at the end of complete measures, i.e., where
the end of a note coincides with the end of a measure.

   <p><a name="index-line-breaks-643"></a><a name="index-bar-lines_002c-invisible-644"></a><a name="index-measure-lines_002c-invisible-645"></a>
Line breaks are also permitted at manually inserted bar lines
even within incomplete measures.  To allow a line break without
printing a bar line, use

<pre class="example">\bar ""
</pre>
   <p class="noindent">This will insert an invisible bar line and allow (but not
force) a line break to occur at this point.  The bar number
counter is not increased.  To force a line break see
<a href="Line-breaking.html#Line-breaking">Line breaking</a>.

   <p>This and other special bar lines may be inserted manually at any
point.  When they coincide with the end of a measure they replace
the simple bar line which would have been inserted there
automatically.  When they do not coincide
with the end of a measure the specified bar line is inserted at that
point in the printed output.  Such insertions do not affect
the calculation and placement of subsequent automatic bar lines.

   <p>The simple bar line and four types of double bar line are available
for manual insertion:

   <blockquote>
<pre class="verbatim">     
     f1 \bar "|" g \bar "||" a \bar ".|" b \bar ".|." c \bar "|." d
</pre>
     <p>
 <a href="../e8/lily-ff4ed5aa.ly">
  <img align="middle"
    border="0" src="../e8/lily-ff4ed5aa.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

<p class="noindent">together with dotted and dashed bar lines:

   <blockquote>
<pre class="verbatim">     
     f1 \bar ":" g \bar "dashed" a
</pre>
     <p>
 <a href="../5c/lily-51f0c3b8.ly">
  <img align="middle"
    border="0" src="../5c/lily-51f0c3b8.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

<p class="noindent">and three types of repeat bar line:

   <blockquote>
<pre class="verbatim">     
     f1 \bar "|:" g \bar ":|:" a \bar ":|" b
</pre>
     <p>
 <a href="../6f/lily-f077ae16.ly">
  <img align="middle"
    border="0" src="../6f/lily-f077ae16.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

   <p><a name="index-repeats-646"></a>
Although the bar line types signifying repeats may be inserted
manually they do not in themselves cause LilyPond to recognize
a repeated section.  Such repeated sections are better entered
using the various repeat commands (see <a href="Repeats.html#Repeats">Repeats</a>), which
automatically print the appropriate bar lines.

   <p>In addition, you can specify <code>"||:"</code>, which is equivalent to
<code>"|:"</code> except at line breaks, where it gives a double bar
line at the end of the line and a start repeat at the beginning of
the next line.

   <blockquote>
<pre class="verbatim">     
     \override Score.RehearsalMark #'padding = #3
     c c c c
     \bar "||:"
     c c c c \break
     \bar "||:"
     c c c c
</pre>
     <p>
 <a href="../6e/lily-38f9c96b.ly">
  <img align="middle"
    border="0" src="../6e/lily-38f9c96b.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

   <p>In scores with many staves, a <code>\bar</code> command in one staff is
automatically applied to all staves.  The resulting bar lines are
connected between different staves of a <code>StaffGroup</code>,
<code>InnerStaffGroup</code>, <code>PianoStaff</code>, or <code>GrandStaff</code>.

   <blockquote>
<pre class="verbatim">     
     &lt;&lt;
       \new StaffGroup &lt;&lt;
         \new Staff {
           e'4 d'
           \bar "||"
           f' e'
         }
         \new Staff { \clef bass c4 g e g }
       >>
       \new Staff { \clef bass c2 c2 }
     >>
</pre>
     <p>
 <a href="../13/lily-76b0322e.ly">
  <img align="middle"
    border="0" src="../13/lily-76b0322e.png" alt="[image of music]">
 </a>
</p>

   </blockquote>

<p class="noindent">

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

<p><a name="index-whichBar-647"></a><a name="index-whichBar-648"></a>
<a name="index-defaultBarType-649"></a><a name="index-defaultBarType-650"></a>

   <p>The command <code>\bar </code><var>bartype</var> is a shortcut for
<code>\set Timing.whichBar = </code><var>bartype</var>.  A bar line is
created whenever the <code>whichBar</code> property is
set.

   <p>The default bar type used for automatically inserted bar lines is
<code>"|"</code>.  This may be changed at any time
with <code>\set Timing.defaultBarType = </code><var>bartype</var>.

<p class="noindent">

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

   <p class="indent">

   <p>Notation Reference: <a href="Line-breaking.html#Line-breaking">Line breaking</a>, <a href="Repeats.html#Repeats">Repeats</a>,
<!-- FIXME: node name changed, but is subject to further changes. -->
<!-- @ref{System start delimiters}. -->

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

   <p>Internals Reference: <a name="index-BarLine-651"></a><a href="../lilypond-internals/BarLine.html#BarLine">BarLine</a> (created at
<a name="index-Staff-652"></a><a href="../lilypond-internals/Staff.html#Staff">Staff</a> level), <a name="index-SpanBar-653"></a><a href="../lilypond-internals/SpanBar.html#SpanBar">SpanBar</a> (across
staves), <a name="index-Timing_005ftranslator-654"></a><a href="../lilypond-internals/Timing_005ftranslator.html#Timing_005ftranslator">Timing_translator</a> (for Timing
properties).

   <!-- footer_tag --><br><hr>
<div class="node">
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Bar-numbers.html#Bar-numbers">Bar numbers</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Bars.html#Bars">Bars</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="Bar-lines.fr.html">français</a>, <a href="Bar-lines.es.html">español</a>, <a href="Bar-lines.de.html">deutsch</a>.
 <BR>
 
</P>
</BODY></html>