Le 20/11/2022 à 14:51, Lukas-Fabian Moser a écrit :
Hi,

is there an "idiomatic" way of forcing LilyPond to print a bar line "|" at the beginning of the piece other than doing the hack of adding

\grace s1 \bar "|"

before the music?
[...]



Hm.


\version "2.23.81"

{
  \once \set Timing.measureStartNow = ##t
  \once \set Timing.measureBarType = "|-s"
  c'1
  \break
  c'1
}



What is amusing is that measureStartNow is unset at the
start of the piece, but both Multi_measure_rest_engraver
and Measure_counter_engraver "or" it with a boolean that
is true in the first time step. Only Bar_engraver uses its
value unchanged without doing something special at the
first time step. It could be wise to make measureStartNow
set to #t at the beginning of the piece, and change
Bar_engraver to "and" it with "not the start of the piece".
(Actually, I was already surprised by this some time ago,
https://gitlab.com/lilypond/lilypond/-/issues/6126.)

Cheers,
Jean

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to