[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bar line at beginning of piece
From: |
Jean Abou Samra |
Subject: |
Re: Bar line at beginning of piece |
Date: |
Sun, 20 Nov 2022 15:35:38 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 |
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
OpenPGP_signature
Description: OpenPGP digital signature