lilypond-user
[Top][All Lists]
Advanced

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

Re: draw-line


From: Pierre Perol-Schneider
Subject: Re: draw-line
Date: Sun, 15 Mar 2015 12:52:24 +0100

Hi Stephen, Hi Kevin,

Kevin's right, it's an easy way to get a curved line:

\version "2.18.2"

\markup {
  %% your example:
  \draw-line #'(1 . 1)
  %% your example in path mode:
  \path #0.1 #'((moveto 0 0)(curveto 0 0 0 0 1 1))
  %% concave example:
  \path #0.1 #'((moveto 0 0)(curveto 0 0 1 0 1 1))
  %% convex example:
  \path #0.1 #'((moveto 0 0)(curveto 0 0 0 1 1 1))
  %% more concave example:
  \path #0.1 #'((moveto 0 0)(curveto 0 0 2 -1 1 1))
  %% more convex example:
  \path #0.1 #'((moveto 0 0)(curveto 0 0 -1 2 1 1))
}


Cheers,
Pierre

2015-03-15 1:37 GMT+01:00 Kevin Barry <address@hidden>:

On Sat, Mar 14, 2015 at 8:46 PM, Stephen MacNeil <address@hidden> wrote:
can I curve a line?

You probably want the \path command which is documented here: http://lilypond.org/doc/v2.18/Documentation/notation/graphic

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user



reply via email to

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