]> git.donarmstrong.com Git - lilypond.git/commitdiff
Added info about boxed bar numbers.
authorGraham Percival <graham@percival-music.ca>
Sat, 20 Nov 2004 21:19:34 +0000 (21:19 +0000)
committerGraham Percival <graham@percival-music.ca>
Sat, 20 Nov 2004 21:19:34 +0000 (21:19 +0000)
ChangeLog
Documentation/user/notation.itely

index aeb3a14b61fd7d2a7c4e0240316392147625a0a3..d44fec5bcc39dbbc0c437a674d07f4fdbee4d07d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-20  Graham Percival  <gperlist@shaw.ca>
+
+       * Documentation/user/notation.itely: added info about typesetting
+       boxed bar numbers.
+
 2004-11-20  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
        * flower/interval.cc (T_to_string): gcc4 fixes.
index e66b2368a70ab6e2de52870fe3a33ae85f2a8d84..b37a61d8b820041d06e15e22b3926ab8d42e3837 100644 (file)
@@ -4995,6 +4995,8 @@ c1 \mark \default
 @c umm, is the manual the right place for feature requests?  :)  -gp
 @c FIXME - should make that tunable.
 
+To use boxed bar numbers instead of letters, see @ref{Bar numbers}.
+
 The mark is incremented automatically if you use @code{\mark
 \default}, but you can also use an integer argument to set the mark
 manually.  The value to use is stored in the property
@@ -5070,7 +5072,7 @@ Examples: @inputfileref{input/@/regression,rehearsal@/-mark@/-letter@/.ly},
 @subsection Bar numbers
 
 
-@cindex bar numbers
+@cindex Bar numbers
 @cindex measure numbers
 @cindex @code{currentBarNumber}
 
@@ -5085,6 +5087,20 @@ whose source is available as
 
 @lilypondfile[raggedright,quote]{bar-number-regular-interval.ly}
 
+Bar numbers can be typeset manually by tweaking the
+@code{markFormatter} property
+
+@lilypond[verbatim,raggedright,quote]
+\relative c' {
+  \set Score.markFormatter
+    = #(lambda (mark context)
+      (make-bold-markup
+        (make-box-markup (number->string (ly:context-property context 'currentBarNumber)))))
+
+  c1 \bar "||" \mark \default c1 c1 \mark \default c1 \bar "|."
+}
+@end lilypond
+
 Bar numbers can be manually changed by setting the
 @code{Staff.currentBarNumber} property