lilypond-user
[Top][All Lists]
Advanced

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

Re: drawing curves in markup (was: draw-line)


From: Thomas Morley
Subject: Re: drawing curves in markup (was: draw-line)
Date: Tue, 17 Mar 2015 22:21:12 +0100



2015-03-17 15:52 GMT+01:00 Kevin Barry <address@hidden>:
Just as a follow up to Stephen's question: for analytic examples I have to draw curved lines all the time, usually with arrow-heads attached at the end, so I made a function to do it given just the coordinates of the desired destination. Using curveto is very slow because of all the trial and error with control points, and if you do this often it becomes draining (rather like fixing slurs before the awesome \shape function was introduced).

The code with some examples is at the end of this mail. If I knew more about mathematics I might know how to calculate the tangent to a bezier curve at the end point (to know how much to rotate the arrowhead) and the function wouldn't be such a hack.

I attach my approach to create arrowed slurs.

It's hackish as well, though maybe helpful.

Cheers,
  Harm

Attachment: arrow-slur-02.ly
Description: Text Data


reply via email to

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