Peter X,
Note use of \laissezVabrer and \reateTie
Mark
\version "2.24.4"
\fixed c' {
\time 4/4
r2. g8 a8 ~ |
\repeat volta 2 {
a2. c8 d8 ~ |
\alternative {
\volta 1 {
d2. b8 a8\laissezVibrer \bar ":|."
}
\volta 2 {
d1\repeatTie |
}
}
c1 \bar "|."
}
}
From: [email protected]
<[email protected]> On Behalf Of Peter X
Sent: Sunday, March 23, 2025 4:01 PM
To: [email protected]
Subject: Tie not rendering properly across volta alternatives
Hi everyone,
I’ve encountered what appears to be a rendering issue with ties when using
\repeat volta and \alternative endings in LilyPond 2.24.4.
Below is a minimal example that illustrates two problems:
lilypond```
\version "2.24.4"
\fixed c' {
\time 4/4
r2. g8 a8 ~ |
% ✅ This tie displays correctly — connects to the start of the repeat.
\repeat volta 2 {
a2. c8 d8 ~ | % ✅ This tie displays correctly
\alternative {
\volta 1 {
d2. b8 a8 ~ \bar ":|."
% ❌ This tie is not displayed.
% It should visually tie back to the start of the repeat block (i.e.,
the 'a2.').
}
\volta 2 {
d1 |
% ❌ Missing tie from 'd8~' before the alternatives.
}
}
c1 \bar "|."
}
}
```
Issue 1: In \volta 1, the tie from a8~ is not shown, even though logically it
should connect to the repeated section’s first note (a2.).
Issue 2: In \volta 2, the d1 is not tied from the d8~ in the bar before the
\alternative, even though musically it is expected.
I understand that some of these rendering behaviors might be due to how
LilyPond internally splits alternatives or handles context. But is there any
way to force these ties to appear visually without resorting to hidden notes or
hacks?
Thanks in advance!
Best regards,
Pt