From 76339de5934f36224b85c7e004c25acb58f77127 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Tue, 30 Oct 2007 05:52:49 -0700 Subject: [PATCH] Minor improvements. --- Documentation/user/rhythms.itely | 56 ++++++++++++++++++-------------- 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/Documentation/user/rhythms.itely b/Documentation/user/rhythms.itely index 72817c5bab..7c0f521b6f 100644 --- a/Documentation/user/rhythms.itely +++ b/Documentation/user/rhythms.itely @@ -1556,49 +1556,41 @@ which is normally updated automatically for every measure. It may also be set manually: @lilypond[verbatim,ragged-right,quote,fragment,relative] -\repeat unfold 4 {c4 c c c} \break +c1 c c c +\break \set Score.currentBarNumber = #50 -\repeat unfold 4 {c4 c c c} +c1 c c c @end lilypond -Bar numbers may only be printed at barlines; to print a bar -number at the beginning of a piece, an empty barline must be -inserted there, and a value other than @code{1} must be placed -in @code{currentBarNumber}: - -@lilypond[verbatim,ragged-right,quote,fragment,relative] -\set Score.currentBarNumber = #50 -\bar "" -\repeat unfold 4 {c4 c c c} \break -\repeat unfold 4 {c4 c c c} -@end lilypond @commonprop @funindex barNumberVisibility @cindex bar numbers, regular spacing -Bar numbers can be typeset at regular intervals instead of just -at the beginning of every line. To do this the default -behaviour must be overridden to permit bar numbers to be -printed at places other than the start of a line. -This is controlled by the -@code{break-visibility} property of @code{BarNumber}. This -takes three values which may be set to @samp{#t} or @samp{#f} to -specify whether the corresponding bar number is visible or not. -The order of the three values is @samp{end of line visible, middle -of line visible, beginning of line visible}. In the following +Bar numbers can be typeset at regular intervals instead of just at +the beginning of every line. To do this the default behaviour +must be overridden to permit bar numbers to be printed at places +other than the start of a line. This is controlled by the +@code{break-visibility} property of @code{BarNumber}. This takes +three values which may be set to @code{#t} or @code{#f} to specify +whether the corresponding bar number is visible or not. The order +of the three values is @code{end of line visible}, @code{middle of +line visible}, @code{beginning of line visible}. In the following example bar numbers are printed at all possible places: @lilypond[verbatim,ragged-right,quote,fragment,relative] \override Score.BarNumber #'break-visibility = ##(#t #t #t) \set Score.currentBarNumber = #11 \bar "" % Permit first bar number to be printed -c1 c c c c +c1 c c c \break -c c c c c +c c c c @end lilypond +@c All the rest of these examples will be added to LSR +@c and moved into the Snippets. -gp + @noindent and here the bar numbers are printed every two bars except at the end of the line: @@ -1695,6 +1687,20 @@ To solve this, the @code{padding} property of @internalsref{BarNumber} can be used to position the number correctly. +Bar numbers may only be printed at barlines; to print a bar +number at the beginning of a piece, an empty barline must be +inserted there, and a value other than @code{1} must be placed +in @code{currentBarNumber}: + +@lilypond[verbatim,ragged-right,quote,fragment,relative] +\set Score.currentBarNumber = #50 +\bar "" +c1 c c c +c1 c c c +\break +@end lilypond + + @node Bar and bar number checks @unnumberedsubsubsec Bar and bar number checks -- 2.39.5