Hi Paolo and Kieren,

I am currently running into the same issues. I also find jumping pedal
marks irritating, even the Ped * variant. My preferred algorithm for
pedal spacing and alignment (not backed up by any notation standard)
would be this:

1. Pedal marks are vertically aligned per system
2. The staff padding is a little bit larger than LY defaults to
accommodate single lower notes.
3. The padding to notes and ornaments is very small (default)
4. If still required the whole pedal line is pushed down.
5. If single notes push it down very far (~3 staff spaces), the
alignment breaks up and only this pedal bracket is pushed down.

2+3 minimize the need for exceptions (5).

I try to achieve this manually. Typically some staff-padding does (2)
but is not enough for (4). So a separate context with spacers and pedal
marks is closer. This way, (5) is much more difficult, though.
A separate Dynamics context works quite well but it needs manual
adjustments for (5).

Examples are attached.

Cheers,
Joram

\version "2.20.0"
#(set-global-staff-size 17)

\paper {
  indent = 0
  ragged-right = ##t
}
notes = {
  \clef bass
  c4 c c c | \break
  e, a,, e, e, | \break
  c,-. e, c, e, | c c c c | \break
  c,, c c c | c c c c
}

remarksA = {
  s1^"default padding"
  s1^"very close and no interference"
  s1^"jumping pedal marks" s
  s1^"again jumping" s
}

remarksB = {
  s1^"default padding"
  s1^"very close and no interference"
  s1^"push down the whole line" s
  s1^"large jumps" s
}

pedals = {
  \repeat unfold 6 { s4\sustainOn s s s\sustainOff }
}

fixpositions = {
  s1*5
  \override SustainPedal.extra-offset = #'(0 . 5)
}

\markup \bold "within Staff"
\new Staff << \notes \pedals \remarksA >>


\markup \bold "Dynamics line"
<<
  \new Staff << \notes \remarksB >>
  \new Dynamics \pedals
>>


\markup \bold "Dynamics line with manual correction"
<<
  \new Staff << \notes \remarksB >>
  \new Dynamics << \pedals \fixpositions >>
>>

Attachment: pedal.pdf
Description: Adobe PDF document

Reply via email to