lilypond-user
[Top][All Lists]
Advanced

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

Same score in 2 books having differents global-staff-size


From: Gilles THIBAULT
Subject: Same score in 2 books having differents global-staff-size
Date: Fri, 16 Nov 2007 16:20:33 +0100

I have a little score fitting just in one page with this command
    #(set-global-staff-size 20)
I want to insert it in a \book of various scores for clarinet beginners, but this book has a different global size :
      #(set-global-staff-size 32)
 
My goal is to have the same result in both cases.
According to the docs, I know that i have to play with :
            #(layout-set-staff-size staffsizetofind)
            fontSize = #fontsizetofind
            \override StaffSymbol #'staff-space = #(magstep fontsizetofind)
 
I have made a lot of trials without success. There is perhaps other tweakings that i have missed.
I would appreciate some tricks  to find the appropriate values or the way to get that ?
 
Gilles
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
\version "2.11.34"
 
 #(set-global-staff-size 20)     % original size
%% #(set-global-staff-size 32)    % new size
 
%% #(define staffsizetofind ?)
%% #(define fontsizetofind ?)
 
frag = \relative c' {
 c d8 e f e d b
}
 
\score {
 \new Staff { \repeat "unfold" 60 \frag c'1 \bar "|." }
 \layout {
  %% #(layout-set-staff-size staffsizetofind)
  \context {
   \Staff
   %% fontSize = #fontsizetofind
           %% \override StaffSymbol #'staff-space = #(magstep fontsizetofind)
  }
 }
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 

reply via email to

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