treble clef spacing
Erik Appeldoorn <[email protected]> Thu, 25 Jun 2026 07:23:04 +0000
| Newsgroups | gmane.comp.gnu.lilypond.general |
|---|---|
| Message-ID | <icBMWY2UZHy9CqZ6gVxGxFyPOnA7ujua0lqeP4JMSzlXge9ybJrb-u65PFUAHyO9KvyIokepR2nb9YEUFz5V6dzdDOmWqfYPfEUDrQ_NNGc=@pm.me> |
This is the last measure of the second Samuel Barber 'Hermit songs'
I know it is quite a bit of code, but couldn't think of a way to make it less. My problem arrises with the last treble clef and the connected arpeggio.
I've tried to move the clef out of the way. Even replacing it for a markup glyph. There must be a way though to solve this.
Although with the stripped example \layout { ragged-last = ##f } did work, it doesn't work in the score (which is much larger), where the measure already fills the whole width of the page.
I'll even rewrite the whole if needed. The clip is from the final score. I have left out the voice and all markings for economy.
Thanks in advance.
[2026-06-25 09 14 38.jpg]
\version "2.26.0"
\layout {
\context {
\Voice
\consists "Melody_engraver"
\override Stem.neutral-direction = #'()
}
}
global = {
\key c \major
\time 3/2
\omit Score.TimeSignature
}
right = \relative c'' {
\global
<e fis ais dis>2\arpeggio <e, a>
\set Score.connectArpeggios = ##t <e' fis! ais! dis!>2\arpeggio
\fine |
}
leftOne = \relative c' {
\global
<b gis' c>2\arpeggio <c, f!>
\set Score.connectArpeggios = ##t
<b' gis' c>2\arpeggio
}
leftTwo = \relative c' {
\global
\clef treble c,4\rest \clef bass d,! c,\rest
des' \clef treble c'\rest \clef bass f,,! \fine
}
\score {
\new PianoStaff <<
\new Staff = "right" \with {
midiInstrument = "acoustic grand"
} \right
\new Staff = "left" \with {
midiInstrument = "acoustic grand"
} { \clef treble << \leftOne \\ \leftTwo >> }
>>
}
Met vriendelijke groet,
Erik Appeldoorn