lilypond-user
[Top][All Lists]
Advanced

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

Re: \path and \postscript in staff


From: Aaron Hill
Subject: Re: \path and \postscript in staff
Date: Fri, 25 May 2018 04:44:26 -0700
User-agent: Roundcube Webmail/1.3.6

On 2018-05-24 23:15, Helge Kruse wrote:
But these lines are outside the staff. If you change "(rlineto 10 1)" to
"(rlineto 10 10)" then the starting point is moved down to keep the
markup outside the stuff. Further it doesn't support the x-position of
the next/previous note column.

There is a difference in behavior between \path and \postscript regarding bounds. See the following:

%%%%
  \version "2.18.2"
  {
    f'4_\markup { \postscript #"0 0 moveto 1 5 lineto stroke" }
    f'4_\markup { \path #0.1 #'((moveto 0 0) (lineto 1 5) (closepath)) }
    f'4_\markup {
      \with-dimensions #'(0 . 0) #'(0 . 0)
      \path #0.1 #'((moveto 0 0) (lineto 1 5) (closepath))
    }
  }
%%%%

By forcing the bounds of the \path-created object to be "empty," it can overlap the staff.

-- Aaron Hill



reply via email to

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