On 13/02/2024 09:40, Xavier Scheuer wrote:
On Tue, 13 Feb 2024 at 10:20, Mariya Kireva <kir...@proton.me> wrote:
>
> Hello all,
>
> it is possible to set up the staff size in lilypond precise in cm or mm?

Hello,

Do you want to set the global staff size so that you have a precise staff height and scale everything (note heads, stems, texts, titles) accordingly?
In that case, as mentioned in NR 4.2.2 Setting the staff size:
The default staff size is 20 points, which corresponds to a staff height of 7.03mm (one point is equal to 100/7227 of an inch, or 2540/7227 mm)

So if you want a staff height of, say, 10mm you should set the global staff size to 20*10/7.03 = 28.45 points.
#(set-global-staff-size 28.45)

Length conversion factors are built into LilyPond, so to save doing the arithmetic yourself, you can write

#(set-global-staff-size (/ (ly:mm 10) (ly:pt 1)))

which scales 10mm to units of points.

--
Timothy Lanfear, Bristol, UK.

Reply via email to