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: Knute Snortum
Subject: Re: markups and accents inside staff
Date: Sun, 31 Jul 2022 07:46:56 -0700

On Sun, Jul 31, 2022 at 7:01 AM Jim Cline <jcline@physics.mcgill.ca> wrote:
>
> Apologies in advance; this seems like it must be simple, but I cannot find
> the answer.  I would like to be able to move an accent closer to the note
> head, possibly using markup since it would also be nice to know how to get
> markups to print over the staff lines.  Here is an example:
>
> %%%
> \version "2.20.0"
> \relative c {
>    \time 3/4
>    \mergeDifferentlyDottedOn
>    <<{<g'' c f>4\arpeggio e' d}\\{ g,8._> dis16 a2}>>|
> }
>
> The accent prints below the beam, and I would like it higher, closer to
> the note head, even if there is some collision with the stem or the staff.
> But \vspace in markup does not allow me to do it.  --Jim

I believe you can do what you want by setting the
outside-staff-priority to ##f and then using Y-offset to move the
accent.

%%%
\version "2.20.0"

\relative c {
   \time 3/4
   \mergeDifferentlyDottedOn
   <<
     { <g'' c f>4\arpeggio e' d }
     \\
     { g,8.
       -\tweak outside-staff-priority ##f
       -\tweak Y-offset -3
       _> dis16 a2
     }
   >> |
}
%%%

--
Knute Snortum



reply via email to

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