lilypond-devel
[Top][All Lists]
Advanced

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

Re: (doc help) What does (linewidth . 40) mean?


From: Mats Bengtsson
Subject: Re: (doc help) What does (linewidth . 40) mean?
Date: Thu, 04 Aug 2005 09:58:32 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511



Graham Percival wrote:

On 4-Aug-05, at 12:23 AM, Mats Bengtsson wrote:

Isn't it the same unit as for all other settings, i.e. the
distance between two staff lines?


I don't know... experimental evidence suggests that this is
a percentage.  Now, maybe my papersize and staff size just
happens to be set up so that there's 100 staffwidths per
line width... but I don't know.

If you want some experimental evidence against your assumptions,
(and in favor of mine) you can play with the following example.
For example, what happens with the text width when you change
the staff size from 11 to 26?  ;-)

\paper{
  linewidth = 5\cm
}

#(set-global-staff-size 11)


\score{{\repeat unfold 100 c''}}
\markup{\override #'(linewidth . 50) \justify {abcd abcd abcd abcd abcd abcd
abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
abcd abcd
}
}


Note that with the default 20pt staff size, the staff line spacing
is 5pt, so 100 would correspond to 500pt which is about 17.6 cm or
6.9 inch, which is a pretty normal setting for the line width.

  /Mats




reply via email to

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