[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PianoPedalBracket.to-barline doesn't always work as expected
From: |
Maurits Lamers |
Subject: |
PianoPedalBracket.to-barline doesn't always work as expected |
Date: |
Tue, 9 Apr 2024 23:55:33 +0200 |
User-agent: |
Mozilla Thunderbird |
Hey all,
I encountered a situation where the PianoPedalBracket setting to-barline
doesn't always do what you'd expect. Given the following code, the pedal
bracket is not extended to the end of the bar:
%%%
\version "2.24.0"
\score {
\new Staff {
\clef bass
\time 6/8
\relative c' {
c8 b a g e c |
\set Staff.pedalSustainStyle = #'mixed
\override Staff.PianoPedalBracket.to-barline = ##t
\repeat tremolo 12 { b,32\sustainOn b' } |
\repeat tremolo 12 { b,32 b'\sustainOff } |
c8 e f g a
}
}
}
%%%
Only when the \sustainOff is placed outside of the tremolo, the bracket
extends to the barline:
%%%
\version "2.24.0"
\score {
\new Staff {
\clef bass
\time 6/8
\relative c' {
c8 b a g e c |
\set Staff.pedalSustainStyle = #'mixed
\override Staff.PianoPedalBracket.to-barline = ##t
\repeat tremolo 12 { b,32\sustainOn b' } |
\repeat tremolo 12 { b,32 b' } \sustainOff |
c8 e f g a
}
}
}
%%%
However, this leads to Lilypond complaining about an unattached
SustainEvent. Is this a bug?
cheers
Maurits
- PianoPedalBracket.to-barline doesn't always work as expected,
Maurits Lamers <=