lilypond-user
[Top][All Lists]
Advanced

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

changing global staff size on the fly


From: Orm Finnendahl
Subject: changing global staff size on the fly
Date: Fri, 20 Jun 2014 11:54:40 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

on Fri, 20 Jun 2014 07:19:15 +0200, Pierre Perol-Schneider wrote
>
> No easy way.
> See also http://lsr.di.unimi.it/LSR/Item?id=862 (just in case...)

Thanks, I was aware of that and had tried something like this:

\version "2.19.5"

staffSize = #(define-music-function (parser location new-size) (number?)
  #{
    \set fontSize = #new-size
    \override StaffSymbol.staff-space = #(magstep new-size)
    \override StaffSymbol.thickness = #(magstep new-size)
  #})


musik = {  \relative c' \repeat unfold 100 {c' d e f} }

\score {
<<
  \new Staff { \musik \pageBreak
               \stopStaff
               \staffSize #-3
               \startStaff
               \musik \pageBreak 
               \stopStaff
               \staffSize #0
               \startStaff
               \musik
             }
>>
}


The font size changes but the staffsymbol properties don't seem to be
changeable from within the staff content (in addition the parameters
for the vertical spacing might have to get adjusted as well).

I don't understand lilyponds pageBreaking and rendering mechanism and
don't even know whether it is possible to change global parameters
like staff size between subsequent pageBreaks in a single
score/book. It might just become too messy to deal with it.

>     I'm on 2.9.15.
>
>
> :o... I thought that one's fossilzed !

sorry: "2.19.5"

--
Orm



reply via email to

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