lilypond-user
[Top][All Lists]
Advanced

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

Re: Special markups


From: Carl D. Sorensen
Subject: Re: Special markups
Date: Mon, 18 May 2009 19:58:15 -0600



On 5/18/09 4:09 PM, "Neil Puttock" <address@hidden> wrote:

> 2009/5/18 Mark Polesky <address@hidden>:
>> 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





reply via email to

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