I found a Snippet with a function in the LilyPond Snippet Repository(LSR):
\version "2.18.2"
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)
#})
\score {
\new Staff % default size
\relative c' {
c4( d e f
g1) \bar "|."
}
\layout {}
}
\score {
\new Staff \with { \staffSize #-4 }
\relative c'' {
g4( f e d
c1) \bar "|."
}
\layout {}
}
it does not change the staff-sizes for whole \bookpart
blocks, but serves the purpose, even though it does look a little bit streched.
Note: the \with { \staffSize #-4 }
needs to be added to every single \new Staff
:
\version "2.18.2"
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)
#})
melody = \relative c'' {
\repeat unfold 3 {
g4( f e d)
e2 e
}
g8( f e d c d e f)
g( f e d c d e f)
g( f e d c2)~
c1 \bar "|."
}
basscl = \relative c' {
\clef bass
\repeat unfold 3 {
g2 e
e c
}
g1
d
f2. c4~
c1 \bar "|."
}
\score {
\new StaffGroup \with {
instrumentName = "minus 4"}
<<
\new Staff \with { \staffSize #-4 }
\melody
\new Staff \with { \staffSize #-4 }
\basscl
>>
\layout {}
}
\score {
\new StaffGroup \with {
instrumentName = "default"}
<<
\new Staff
\melody
\new Staff
\basscl
>>
\layout {}
}
\score {
\new StaffGroup \with {
instrumentName = "plus 4"}
<<
\new Staff \with { \staffSize #4 }
\melody
\new Staff \with { \staffSize #4 }
\basscl
>>
\layout {}
}
also the distance between the staffs gets smaller and smaller the bigger the score gets and vice versa. This needs to be tweaked manually. No ideal solution at all.
layout-set-staff-size
is already suggested in the "2.18.2" docs, did not know this...