On 5/18/09 4:09 PM, "Neil Puttock" <[email protected]> wrote:
> 2009/5/18 Mark Polesky <[email protected]>:
>> Helge Kruse wrote:
>>> I want to add
>> markups... circled T and the
>>> half-moon... How do I add such special markups?
>>
>> See the 2 attached files.
>
> Nice curve. :)
>
> Here's a slightly simplified version:
>
> #(define-markup-command (fingernail layout props) ()
> (ly:make-stencil
> (list 'bezier-sandwich
> '(list 1.6 1.5 0.4 1.5 0 0 2 0
^^^^
This list is unnecessary, since the list is quoted, I think.
> 0.4 0.75 1.6 0.75 2 0 0 0)
> 0.15)
> '(0 . 2)
> '(0 . 1.75)))
>
Perhaps for maximum clarity, we should write this as:
#(define-markup-command (fingernail layout props) ()
(ly:make-stencil
(list 'bezier-sandwich
(list 1.6 1.5 0.4 1.5 0 0 2 0
0.4 0.75 1.6 0.75 2 0 0 0)
0.15)
(cons 0 2)
(cons 0 1.75)))
I think we just had a discussion where we decided that the '(A . B) syntax
was more confusing than (cons A B) because the period could be overlooked.
HTH,
Carl
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user