[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: need markup function for arrow at end of curve
From: |
David Kastrup |
Subject: |
Re: need markup function for arrow at end of curve |
Date: |
Tue, 07 Mar 2017 11:23:48 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Pierre Perol-Schneider <address@hidden> writes:
> Hi Kieren,
> As said, I worked on it yesterday but the result is not good enough.
> Nevertheless, here's a cleaner version :
>
> \version "2.19"
>
> #(define-markup-command (curvedArrow layout props X-scale Y-scale)
> (number? number?)
> (interpret-markup layout props
> (markup
> (#:stencil
> (make-path-stencil
> '(M 12.0 4.0
> C 12.0 4.0 16.0 2.5 16 2.5
> C 16.0 2.5 12.0 1.0 12 1.0
> C 12.2 2.0 12.0 2.0 12 2.0
> C 8.0 2.2 2.0 1.2 0 0.0
> C 2.0 2.0 8.0 3.0 12 3.0
> C 12.0 3.0 12.2 3.0 12 4.0
> Z)
> .15 X-scale Y-scale #t)))))
Huh. Maybe this kind of work could benefit a whole lot from xfig
<http://mcj.sourceforge.net/> getting a LilyPond markup export option?
--
David Kastrup