bug-lilypond
[Top][All Lists]
Advanced

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

Re: layout-set-staff-size units


From: Mats Bengtsson
Subject: Re: layout-set-staff-size units
Date: Tue, 02 Jan 2007 13:34:48 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20061206)

I must have dreamt that I tried it. Anyway, it seems that the unit of the
argument is not the same as for global-set-staff-size. If you try
#(layout-set-staff-size (* 14.0 pt))
you will get the correct size. Still, the staff line spacing isn't adjusted
as long as the function is called within a \layout{...} block.

You second example works without any problems in 2.11.7, though.

To summarize (for bug-lilypond), we have at least two bugs:

- The text that I recently added to the manual is wrong, since it
 doesn't include the (* ... pt) to get the correct scaling. However,
 it seems more reasonable to change the function itself to use pt as
 the scale (the function is called internally at some places, which would
 have to be adjusted correspondingly). Example:
\version "2.10.0"
#(set-global-staff-size 16)
\score {
 \relative c' { c d e f }
 \layout { #(layout-set-staff-size 16.0) }
}
\score {
 \relative c' { c d e f }
 \layout { #(layout-set-staff-size (* 16.0 pt)) }
}


- The staff line spacing isn't changed unless you call the function within
a \paper{...} block, which means that it cannot be used to produce different
 staff size of different scores within the same book. Example:

\version "2.10.0"

\score {
 \relative c' { c d e f }
 \layout { #(layout-set-staff-size (* 16.0 pt)) }
}



  /Mats


gnomino wrote:
Mats Bengtsson wrote:
It did work last time I tried it. Could you please include
a small example that illustrates what you tried.

The following does not work (everything except for lines are too big):

\score {
        \relative c'' {
                \clef treble
                \key c \major
                \time 2/4
                r4 g'4 g4. e8 d4 g, c e8 r
        }
        \layout {
                #(layout-set-staff-size 14)
        }
}

The following doesn't work either (still too big), but notes fit the lines:

\paper {
        #(layout-set-staff-size 14)
}

\score {
        \relative c'' {
                \clef treble
                \key c \major
                \time 2/4
                r4 g'4 g4. e8 d4 g, c e8 r
        }
        \layout {}
}

This is with version 2.11.4 (FC5, self-compiled). With version 2.10.5, the
second example doesn't work either. The conversion to PDF fails, and viewing the
PS file results in "/undefined in output-scale".




_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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