lilypond-user
[Top][All Lists]
Advanced

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

Re: TextScript inside staff


From: Jean Abou Samra
Subject: Re: TextScript inside staff
Date: Thu, 9 Jun 2022 08:13:05 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

Le 09/06/2022 à 02:57, Ahanu Banerjee a écrit :
Hello,

I'm looking for a way to put markup text, anchored to a note, inside the staff. The only way I have found so far is using extra-offset, which results in spacing issues around the text's original position. Is there another way?

Example:

    \version "2.23.8"
    { \stemUp e'' -\tweak extra-offset #'(0 . 2.75) -\tweak whiteout
    ##t _\markup "II" }


Thanks,
-Ahanu


You need something like

\version "2.23.9"

{
  \stemUp
  e''-\tweak staff-padding #'()
     -\tweak outside-staff-priority ##f
     -\tweak whiteout ##t _\markup "II"
}

Both staff-padding and outside-staff-priority keep the TextScript from
getting inside the staff.

Best,
Jean






reply via email to

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