[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Where is \staff-space defined?
From: |
Werner LEMBERG |
Subject: |
Re: Where is \staff-space defined? |
Date: |
Tue, 11 Nov 2014 21:07:48 +0100 (CET) |
> It seems suspicious. What happens is that in paper-defaults-init.ly,
> there is a line:
>
> %% ugh. hard coded?
> #(layout-set-absolute-staff-size (* 20.0 pt))
>
> The comment says it all :-) Not that I am not guilty of hardcoding…
> no stones are thrown…
What's the problem? `paper-defaults-init.ly' sets up the default
value, 20pt. Admittedly, the comment is irritating, and I wonder why
it is there...
> Jump to paper.scm, where we have:
>
> layout-set-absolute-staff-size
>
> that calls:
>
> layout-set-absolute-staff-size-in-module
>
> which sets staff-space as the staff height / 4.
Yes, this *is* hard-coded, by definition.
> So beyond the hard coding of 20.0, there is a further layer of
> (uncommented) hard-coditude that assumes we have 4 spaces in the
> staff.
You are not suggesting to change that, do you? That way madness
lies...
Werner