<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!-- header_tag --> <html lang="en"> <head> <title>Bar_number_engraver - LilyPond program-reference</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="description" content="LilyPond program-reference"> <meta name="generator" content="makeinfo 4.11"> <link title="Top" rel="start" href="index.fr.html#Top"> <link rel="up" href="Engravers-and-Performers.fr.html#Engravers-and-Performers" title="Engravers and Performers"> <link rel="prev" href="Bar_005fengraver.fr.html#Bar_005fengraver" title="Bar_engraver"> <link rel="next" href="Beam_005fengraver.fr.html#Beam_005fengraver" title="Beam_engraver"> <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> <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_number_engraver"></a> <a name="Bar_005fnumber_005fengraver"></a> Next: <a rel="next" accesskey="n" href="Beam_005fengraver.fr.html#Beam_005fengraver">Beam_engraver</a>, Previous: <a rel="previous" accesskey="p" href="Bar_005fengraver.fr.html#Bar_005fengraver">Bar_engraver</a>, Up: <a rel="up" accesskey="u" href="Engravers-and-Performers.fr.html#Engravers-and-Performers">Engravers and Performers</a> <hr> </div> <h4 class="unnumberedsubsec">Bar_number_engraver</h4> <p>A bar number is created whenever <code>measurePosition</code> is zero and when there is a bar line (i.e., when <code>whichBar</code> is set). It is put on top of all staves, and appears only at the left side of the staff. The staves are taken from <code>stavesFound</code>, which is maintained by <a href="Staff_005fcollecting_005fengraver.fr.html#Staff_005fcollecting_005fengraver">Staff_collecting_engraver</a>. <p>Properties (read) <blockquote> <dl> <dt><code>currentBarNumber</code> (integer)<dd>Contains the current barnumber. This property is incremented at every bar line. <br><dt><code>whichBar</code> (string)<dd>This property is read to determine what type of bar line to create. <p>Example: <pre class="example"> \set Staff.whichBar = "|:" </pre> <p class="noindent">This will create a start-repeat bar in this staff only. Valid values are described in <a href="bar_002dline_002dinterface.fr.html#bar_002dline_002dinterface">bar-line-interface</a>. <br><dt><code>stavesFound</code> (list of grobs)<dd>A list of all staff-symbols found. <br><dt><code>barNumberVisibility</code> (procedure)<dd>A Procedure that takes an integer and returns whether the corresponding bar number should be printed. </dl> </blockquote> <p>This engraver creates the following layout object(s): <p><a href="BarNumber.fr.html#BarNumber">BarNumber</a>. <p><code>Bar_number_engraver</code> is part of the following context(s): <a href="Score.fr.html#Score">Score</a>. <!-- footer_tag --><br><hr> <div class="node"> <p> <a name="Bar_005fnumber_005fengraver"></a> Next: <a rel="next" accesskey="n" href="Beam_005fengraver.fr.html#Beam_005fengraver">Beam_engraver</a>, Previous: <a rel="previous" accesskey="p" href="Bar_005fengraver.fr.html#Bar_005fengraver">Bar_engraver</a>, Up: <a rel="up" accesskey="u" href="Engravers-and-Performers.fr.html#Engravers-and-Performers">Engravers and Performers</a> </div> <div style="background-color: #e8ffe8; padding: 2; border: #c0ffc0 1px solid;"> <p> <font size="-1"> Cette page documente LilyPond-2.11.57 (branche de développement). <br> <address> Rapportez toute anomalie en français à <a href="mailto:lilypond-user-fr@gnu.org">lilypond-user-fr@gnu.org</a> ou en anglais à <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> Vos <a href="http://lilypond.org/web/devel/participating/documentation-adding">suggestions à propos de la documentation</a> sont les bienvenues. </font> </p> </div> </BODY></html>