Hello, I posted a thread a week or two ago about the spacing issue with MetronomeMarks and multimeasure rests. The upshot of that thread was that I started using a custom context to display all my MetronomeMarks and RehearsalMarks. It works great, except that whenever there are ledger lines, the marks still affect the horizontal spacing of the notes. What I'd like to happen is that the notes above the staff bump the MarkLine context to a greater vertical distance from the staff, keeping the horizontal spacing intact. Any ideas on how to accomplish that?
\version "2.14.2" \language "english" \paper { ragged-right = ##t } foo = \relative c''' { \tempo "For example" c4 d e f | g f e d | \mark \default c e g f | e2 c2 | \break \tempo "blah blah blah" R1*2 | \mark \default R1*2 | \break \resetRelativeOctave c''' \tempo "For example" c4 d, e f | g f e d | \mark "blah" e e g f | e2 c2 | } \score { << \new MarkLine \foo \new Staff { \compressFullBarRests \foo } >> \layout { \context { \name "MarkLine" \type "Engraver_group" \consists Output_property_engraver \consists Axis_group_engraver \consists Mark_engraver \consists Metronome_mark_engraver % If you comment the following two lines, the notes space correctly % The marks then don't space correctly over the multimeasure rests, however \override RehearsalMark #'extra-spacing-width = #'(0 . 0) \override MetronomeMark #'extra-spacing-width = #'(0 . 0) \override VerticalAxisGroup #'minimum-Y-extent = #'(-2 . 2 ) \override VerticalAxisGroup #'staff-staff-spacing = #'((basic-distance . 1) (minimum-distance . 1) (padding . 1) (stretchability . 3)) } \context { \Score \override MultiMeasureRest #'expand-limit = #1 \remove Mark_engraver \remove Metronome_mark_engraver \accepts MarkLine } } } As I remarked in the comment, the extra-spacing-width is what causes the horizontal spacing problem. As you can see from the third system in the example, though, the extra-spacing-width works fine with the horizontal spacing as long as the notes are low enough in the staff. Two ledger lines above the staff seems to be the limit for MetronomeMarks before the note spacing is affected; the top space of the staff seems to be the limit for RehearsalMarks before note spacing is affected. I'd really appreciate any suggestions on how to solve this issue. -- View this message in context: http://old.nabble.com/Spacing-issue-with-ledger-lines-and-custom-Marks-context-tp33265399p33265399.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user