lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Allow dynamic + span bar line collision


From: Jay Anderson
Subject: Allow dynamic + span bar line collision
Date: Sun, 6 Aug 2017 17:51:02 -0700

I believe the default behavior in this case used to be for the dynamics to collide with the bar line. These days it is creating a bit more space for the dynamic. That's the right behavior in most cases, but not the one below. How do I allow the collision in this case and let the 'sempre' hang to the left over the bar line? I haven't figured out the right override to let this happen yet. Thanks.

Example:
=====
\version "2.19.63"

sempreFF = #(let ((dynamic (make-dynamic-script #{ \markup { \whiteout { \normal-text \italic sempre \dynamic ff }} #})))
             (ly:music-set-property! dynamic 'tweaks (acons 'X-offset -8.5 (ly:music-property dynamic 'tweaks)))
             (ly:music-set-property! dynamic 'tweaks (acons 'self-alignment-X LEFT (ly:music-property dynamic 'tweaks)))
             dynamic)

% Looks good
\score {
  \new Staff {
    c4 c c c |
    c\sempreFF c c c |
  }
}

% creates empty space
\score {
  \new GrandStaff <<
    \new Staff {
      c4 c c c |
      c\sempreFF c c c |
    }
    \new Staff {
      c4 c c c |
      c\sempreFF c c c |
    }
  >>
}
=====

-----Jay

reply via email to

[Prev in Thread] Current Thread [Next in Thread]