lilypond-user
[Top][All Lists]
Advanced

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

Re: markups and accents inside staff


From: Aaron Hill
Subject: Re: markups and accents inside staff
Date: Sun, 31 Jul 2022 14:29:21 -0700

On 2022-07-31 2:11 pm, Jim Cline wrote:
Can you provide a MWE? (https://lilypond.org/tiny-examples.html)

--
Knute Snortum

Sure, here is one. The vspace is ignored, no matter what value is given.

%%%
\version "2.20.0"
\relative c {
  \time 3/4
  g'' e' d_\markup{\hspace #-4 \vspace #-7 x}
}

I am not certain negative \hspace or \vspace is supported. For \hspace, it probably only works by fluke.

Regardless, in order to overlap the staff, you must disable outside-staff-priority. Additionally, you may need to specify negative padding. Consider:

%%%%
\relative c {
  \time 3/4
  g'' e' d-\tweak outside-staff-priority ##f
          -\tweak X-offset -1.2 -\tweak Y-offset 1
          _\markup \with-color #red \vcenter x
}

\relative c {
  \time 3/4
  g'' e' d-\tweak outside-staff-priority ##f
          -\tweak padding #-5
          _\markup \translate #'(-1.2 . 3.5)
                   \with-color #red \vcenter x
}
%%%%


-- Aaron Hill



reply via email to

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