[ << Tweaks and overrides ] | [Top][Contents] | [ Paper and layout >> ] |
[ < 連桁の位置を手動でコントロールする ] | [ Up : Tweaks and overrides ] | [ Mensurstriche レイアウト (譜の間に小節線を表示する) > ] |
Measure-centered bar numbers
For film scores, a common convention is to center bar numbers within
their measure. This is achieved through setting the
centerBarNumbers
context property to true. When this is used,
the type of the bar number grobs is CenteredBarNumber
rather
than BarNumber
.
This example demonstrates a number of settings: the centered bar numbers are boxed and placed below the staves.
\layout { \context { \Score centerBarNumbers = ##t barNumberVisibility = #all-bar-numbers-visible \override CenteredBarNumber.stencil = #(make-stencil-boxer 0.1 0.25 ly:text-interface::print) \override CenteredBarNumberLineSpanner.direction = #DOWN } } \new StaffGroup << \new Staff \relative c' { d4-. f8( e d4) bes'-> | d,-. f8( e d4) cis'-> | g-. f8( d e4) g-> | a,1-> | } \new Staff \relative c { \clef bass d4 f8 e d2~ | 4 f8 e d2~ | 4 4 2 | a1 | } >>
[ << Tweaks and overrides ] | [Top][Contents] | [ Paper and layout >> ] |
[ < 連桁の位置を手動でコントロールする ] | [ Up : Tweaks and overrides ] | [ Mensurstriche レイアウト (譜の間に小節線を表示する) > ] |