Apologies for all the emails, but I believe I figured it out. Using \set
Staff.measureBarType = "" as follows seems to do the trick, although
there still is a bit of gap where the barline would go.
\version "2.24.3"
stuff = \relative {
\set Staff.measureBarType = ""
\time 4/4
c4 d4 e4 f4 | \bar "|"
g4 f4 e4 d4 | \bar "|"
c1 | \bar "|"
}
\score {
<<
\new Staff \scaleDurations 1/1 \stuff
\new Staff \scaleDurations 8/9 \stuff
>>
\layout {
\context {
\Staff
\consists "Timing_translator"
}
\context {
\Voice
\remove "Forbid_line_break_engraver"
}
}
}
Thanks,
~Dmitri
On 2024-05-10 4:42 p. m., Dmitri Volkov wrote:
Apologies for the double email, I was confused because it looked like
it wasn't being posted to the email list.
I also wanted to provide a smaller example which reproduces the issue:
\version "2.24.3"
stuff = \relative {
\time 4/4
c4 d4 e4 f4 | \bar "|"
g4 f4 e4 d4 | \bar "|"
c1 | \bar "|"
}
\score {
<<
\new Staff \scaleDurations 1/1 \stuff
\new Staff \scaleDurations 8/9 \stuff
>>
\layout {
\context {
\Staff
\consists "Timing_translator"
}
\context {
\Voice
\remove "Forbid_line_break_engraver"
}
}
}
Thank you!
~Dmitri Volkov
On 2024-05-10 4:18 p. m., Dmitri Volkov wrote:
Hello,
I am looking to engrave a polytempo piece with LilyPond, but am
having trouble getting the bars to display properly. Using \bar "|"
seems to ensure that both parts include barlines in the correct
places, but the second part seems to also include the bars of the
first part.
Trying to remove barlines, as described in the code at the following
link, doesn't seem to work:
https://www.bachproject.net/forum/viewtopic.php?f=2&t=448&p=1648&hilit=polytempo#p1648
Very new to LilyPond so any guidance would be greatly appreciated!
Here is a zip with the project files, which are pretty minimal:
https://we.tl/t-3X0QXkhkUs .
Thank you,
~Dmitri Volkov