Measure-centered bar numbers: Difference between revisions

Import snippet from LSR
 
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
For film scores, a common convention is to center bar numbers within their measure. This is achieved through setting the <code>centerBarNumbers</code> context property to true. When this is used, the type of the bar number grobs is <code>CenteredBarNumber</code> rather than <code>BarNumber</code>.
For film scores, a common convention is to center bar numbers within their measure. This is achieved through setting the <code>centerBarNumbers</code> context property to <code>#t</code>. When this is used, the type of the bar number grobs is <code>CenteredBarNumber</code> rather than <code>BarNumber</code>.


This example demonstrates a number of settings: the centered bar numbers are boxed and placed below the staves.
This example demonstrates a number of settings: the centered bar numbers are boxed and placed below the staves.


<lilypond version="2.24.0">
<lilypond version="2.24">
\layout {
\layout {
   \context {
   \context {
Line 34: Line 34:
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]