lilypond-devel
[Top][All Lists]
Advanced

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

Re: Calculate spacing in lilypond


From: Reinhold Kainhofer
Subject: Re: Calculate spacing in lilypond
Date: Tue, 20 Jul 2010 15:46:40 +0200
User-agent: KMail/1.13.5 (Linux/2.6.32-24-generic; KDE/4.4.5; i686; ; )

Am Dienstag, 20. Juli 2010, 14:06:25 schrieb address@hidden:
> Ok I tried it in an easy example (just one note)
> but I don't understant the functions
> combine-stencil and translate-stencil
> what are their arguments (i don't know scheme programming yet)
> I have just found some lines in scm/stencil.scm
[...]
> are the argument of translate-stencil in pixel, if it is the case then why
> are there some float numbers?

No, LilyPond is not based on pixels at all. The default output formats (PDF, 
PS, EPS) are all vector graphic formats. The PNG/JPG output simply converts 
the resulting vector graphic to a pixel graphic. Unfortunately, this means 
that it is basically impossible to detect exactly where a note is printed in 
the pixel graphic.

I suppose it would be much easier to modify the .ly files and re-create the 
graphics...

Cheers,
Reinhold
-- 
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org



reply via email to

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