bug-lilypond
[Top][All Lists]
Advanced

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

Re: Compound time


From: Han-Wen Nienhuys
Subject: Re: Compound time
Date: Thu, 29 Dec 2005 18:07:19 +0100
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)

Gilles wrote:

[Please refer to the attached image.]

4. The space on the right side of the plus seems too wide.

5. The first note seems too close to the time signature.



Lacking any response (-confirmed/existing/solved in newer version/not- bug),
I extended the "hack" for compound time:

#(define (compound-time grob one two three four)
  (interpret-markup
   (ly:grob-layout grob)
   '(((baseline-skip . 2)
      (word-space . 2)
      (font-family . number)))
   (markup
    #:line
    (#:column (one two)
    #:lower 1 "+"
    #:hspace -2.4 #:column (three four)
    " "))))

which makes it even uglier (see the negative "hspace" and the added
blank space), and still it will only work for default font size.

You need to use the defaults for the text font,
try calling

   ly:grob-alist-chain


with the 'text-font-defaults from the layout returned by (ly:grob-layout grob)

--
 Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen




reply via email to

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