lilypond-user
[Top][All Lists]
Advanced

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

set-global-staff-size causes weird printing


From: Valentin Villenave
Subject: set-global-staff-size causes weird printing
Date: Thu, 26 Jul 2007 15:37:49 +0200

Hello everybody,

I'm typesetting a large, large orchestral score; I've always used a small
global-staff-size and it worked very well.
However, I've just discovered that when I specify a different
global-staff-size, the compilation goes fine, no error messages... but
the .pdf (as well as the .ps) output is just one empty page!

I just can't understand what's going on. When I try to simplify and
reduce my code, I can't reproduce the bug. So here's the whole code
I'm working on; maybe someone can help me to understand it (It's not a
problem though; as I always use a small global-staff-size, the score
always prints fine).

Thank you all,
Valentin

%%% score.ly %%%

\version "2.11"
\include "italiano.ly"

%% uncomment one of the following lines:
%% with 14 it doesn't print, whereas
%% with 13 it's fine

%#(set-global-staff-size 14)
%#(set-global-staff-size 13)


mesuresUn= {
  \set Score.markFormatter = #format-mark-box-letters
\override Score.RehearsalMark #'extra-offset = #'(0.0 . 0.0 )
\override Score.RehearsalMark #'font-size = #10
\override Score.TimeSignature #'style = #'()
\time 3/4
  s2.*3-\markup{ \huge \bold Animato } | s2.
\time 2/4 s2 |
\time 3/4 s2.*2 |
\time 2/4 s2 |
\time 3/4 s2.*3 |
\time 2/4 s2 |
\time 3/4 s2. |
\time 2/4 s2 |
\time 3/4 s2.*2 |
\time 2/4 s2 |
\time 3/4 s2.*3 |
\time 2/4 s2 |
\time 3/4 s2. |
\time 2/4 s2 |
\time 3/4 s2.*2 |
\time 2/4 s2 |
\time 3/4 s2.*3 |
\time 2/4 s2 |
\mark \default
\time 3/4 s2. |
\time 4/4 s1 |
\time 3/4 s2. |
\time 2/4 s2 |
\time 3/4 s2. |
\time 4/4 s1 |
\time 3/4 s2. |
\time 2/4 s2 |
}



IContralto= {
        \set Staff.instrumentName = \markup { \hcenter-in #25 "Dieu  "}
   \set Staff.shortInstrumentName = "Dieu.  "
   << \new Voice = "IDieu"
        \relative do
        {
                R2.*4 R2 R2.*2 R2 R2.*3 R2 |
        }
%   \new Lyrics \lyricsto "IDieu" { \IDIieu }
   >>
}


ISopranoUn= {
        \set Staff.instrumentName = \markup { \hcenter-in #27.5 "Le Docteur  "}
   \set Staff.shortInstrumentName = "Doct.  "
   << \new Voice = "IDocteur"
        \relative do'
        {
                R2.*4 R2 R2.*2 R2 R2.*3 R2 |
        }
%   \new Lyrics \lyricsto "IDocteur" { \IDocteur }
   >>
}


ISopranoDeux= {
        \set Staff.instrumentName = \markup { \hcenter-in #25 "La Reine  "}
   \set Staff.shortInstrumentName = "Reine.  "
   << \new Voice = "IReine"
        \relative do'
        {
                R2.*4 R2 R2.*2 R2 R2.*3 R2 | R2. R2 R2.*2 R2 R2.*3 R2 | R2. R2 
R2.*2
R2 R2.*3 R2 |
       r4 sold'8 sold sol!4 | r16 sold si8~ si sib~ \times 2/3 {sib
si! sib} re4 | R2. | r8 re re re | \times 2/3 {fa re re} re4. re8 |
       r4 si8[ sib] sib[ la] dod la | sold2 r4 | R2 |
        }
 %  \new Lyrics \lyricsto "IReine" { \IReine }
   >>
}


ITenor= {
        \set Staff.instrumentName = \markup { \hcenter-in #27 "Le Chef  "}
   \set Staff.shortInstrumentName = "Chef.  "
   << \new Voice = "IChef"
        \clef "G_8"
        \relative do'
        {
                                R2.*4 R2 R2.*2 R2 R2.*3 R2 |
        }
%   \new Lyrics \lyricsto "IChef" { \IChef }
   >>
}


IaltoUn= {
        \set Staff.instrumentName = \markup { \hcenter-in #25 "Alto 1  "}
   \set Staff.shortInstrumentName = "Alt. 1  "
   \set Staff.midiInstrument = "viola"
\clef alto
        \relative do''
        { \clef treble \times 4/6 {
                <la re\harmonic la''>16[ <la re\harmonic la''> <la re\harmonic 
la''>
<la re\harmonic la''> <la re\harmonic la''> <la re\harmonic la''>]
                        }
                        \times 4/6 { la''16-\markup { \italic "simile" } la la 
la la la }
                        \repeat unfold 68 { \times 4/6 { la[ la la la la la] } 
} la4 r
\times 4/6 { si,8[ si16 si si si] } |
           \repeat unfold 8 { \times 4/6 { mi,[ mi mi mi mi mi] } } |
                }
        }


IaltoDeux= {
        \set Staff.instrumentName = \markup { \hcenter-in #25 "Alto 2  "}
   \set Staff.shortInstrumentName = "Alt. 2  "
   \set Staff.midiInstrument = "viola"
\clef alto
        \relative do''
        { \clef treble \times 4/6 {
                <la re\harmonic la''>16[ <la re\harmonic la''> <la re\harmonic 
la''>
<la re\harmonic la''> <la re\harmonic la''> <la re\harmonic la''>]
                        }
                        \times 4/6 { la''16-\markup { \italic "simile" } la la 
la la la }
                        \repeat unfold 68 { \times 4/6 { la[ la la la la la] } 
} la4 r
\times 4/6 { la,8[ la16 la la la] } |
           \times 4/6 { la[ la la la la la] } \repeat unfold 7 {
\times 4/6 { re,[ re re re re re] } } |
                }
        }


IclarinetteUn= {
        \set Staff.instrumentName = \markup { \hcenter-in #25 "Clarinette 1  "}
   \set Staff.shortInstrumentName = "Cl. 1  "
   \set Staff.midiInstrument = "clarinet"
\relative       {
                R2.*3 | re''8 sib~ sib2~ | sib4 r | si!8 sol~ sol2~ | sol2 r4 | 
r
sold | mi2.~ | mi2.~ | mi2.~ | mi4 r |
       R2. R2 R2.*2 r4 r8 la, | mi2.~ | mi2.~ | mi2.~ | mi4 r |
       R2. R2 R2.*2 R2 | R2. mi'2.~| mi2.~| mi4 r |
        }
}


IclarinetteDeux= {
        \set Staff.instrumentName = \markup { \hcenter-in #25 "Clarinette 2  "}
   \set Staff.shortInstrumentName = "Cl. 2  "
   \set Staff.midiInstrument = "clarinet"
\relative       {
                R2.*4 R2 R2.*2 R2 | mi2.~ | mi2.~ | mi2.~ | mi4 r | mib'4 sib2~ 
|
sib4 r | do8 sol~ sol2~| sol2.~ | sol4 r |  mi,2.~ | mi2.~ | mi2.~ |
mi4 r |
       R2. R2 R2.*2 R2 | R2. | re''2.~| re2.~| re4 r |
        }
}


Icontrebasse = {
        \set Staff.instrumentName = \markup { \hcenter-in #27.25 "Contrebasse  
"}
   \set Staff.shortInstrumentName = "Ctrb.  "
   \set Staff.midiInstrument = "contrabass"
\clef "F_8"
\relative       {
                R2.*4 R2 R2.*2 R2 | r4 sol2~\flageolet sol2.~\flageolet
sol2.~\flageolet sol4\flageolet r | R2. R2 | R2.*2 R2 |
       | r4 sold2~ sold2.~ sold2.~ sold4 r | R2. R2 | R2.*2 R2 |
R2.*2 | r2. | \times 4/6 { mi8[ mi16 mi mi mi] } \times 4/6 { mi[ mi
mi mi mi mi] }|
                }
}


IfluteUn = {
   \set Staff.instrumentName = \markup { \hcenter-in #25 "Flûte 1  "}
   \set Staff.shortInstrumentName = "Fl. 1  "
   \set Staff.midiInstrument = "flute"
\relative {
                R2.*4 R2 R2.*2 R2 | r2 \times 4/5 {si''16 red re fad fa}| la4~ 
la8[
fa]~ fa8 r | r8. red16 si4. la'8~ | la2~ |
       la2.~ | la2~ | la4 r \times 2/3 {r8 sol,, mib'} | fad2.~ | fad4 r |
       r \times 4/5 {sib16 mib dod fad mi} la4~ | la4. sib,8 la'4~ |
la2.~| la4 r | R2. R2 | R2.*2 R2 |
       mi2.~| mi2.~| mi2.~| mi4 r |
        }
}


IfluteDeux= {
        \set Staff.instrumentName = \markup { \hcenter-in #25 "Flûte 2  "}
   \set Staff.shortInstrumentName = "Fl.2  "
   \set Staff.midiInstrument = "flute"
\relative {
                R2.*4 R2 R2.*2 R2 | r2 \times 2/3 {si''8 re fa}| fad2 red8 r16 
fad!
| re!2.~ | re4 r |
       R2. R2 | la'2.~ | la2.~ | la4 r | r \times 2/3 {sib,8 reb
mib~} mib4~ | mib16. fad32 do8~ do2 | \times 4/5 {si!16 do si sold sol
} mib'16 mi,!8.~ mi4~| mi r | R2. R2 R2.*2 R2 |
       la2.~| la2.~| la2.~| la4 r |
        }
}


Ipercus= {
        \new RhythmicStaff
        \set RhythmicStaff.instrumentName = \markup { \hcenter-in #30 "Percussions  
"}
   \set RhythmicStaff.shortInstrumentName = "Perc.  "
   \override RhythmicStaff.VerticalAxisGroup #'minimum-Y-extent = #'(-4 . 4)
        \relative do''
        {
                R2.*4 R2 R2.*2 R2 R2.*3 R2 |
        }
}


Ipiano = { <<
        \set PianoStaff.instrumentName = \markup { \hcenter-in #27.5 "Piano  "}
   \set PianoStaff.shortInstrumentName = "Piano.  "
\new Staff = "droite" {
   \relative { R2.*4 R2 R2.*2 R2 \clef bass r8 <sol lab sib dob
re>\arpeggio ~ <sol lab sib dob re>2\laissezVibrer R2.*2 R2 |
R2. R2 R2.*2 R2 | r8 <sol lab si do mib>\arpeggio ~ <sol lab si do
mib>2\laissezVibrer | R2.*2 R2 | R2. R2 | R2.*2 | R2 | } }

\new Staff = "gauche" {
   \clef bass \relative { R2.*4 R2 R2.*2 R2 mi,,2.\laissezVibrer R2.*2 R2 |
R2. R2 R2.*2 R2 | mi2.\laissezVibrer | R2.*2 R2 | R2. R2 | R2.*2 | R2 |} }  >>
}


IsaxophoneUn= {
        \set Staff.instrumentName = \markup { \hcenter-in #25 "Saxophone Alto  
"}
   \set Staff.shortInstrumentName = "Sax. A  "
   \set Staff.midiInstrument = "alto sax"
        \relative {
                R2.*4 R2 R2.*2 R2 R2.*3 R2 | R2. R2 R2.*2 R2 R2.*3 R2 | la'4 
re,2~ |
re4 r | mi4. la,8~ la4~ | la2 r4 | si2 | mi,2.~ | mi2.~ | mi2.~ | mi4
r |

        }
}


IsaxophoneDeux= {
        \set Staff.instrumentName = \markup { \hcenter-in #25 "Saxophone Baryton  
"}
   \set Staff.shortInstrumentName = "Sax. B  "
   \set Staff.midiInstrument = "baritone sax"
\clef bass \relative {
                R2.*4 R2 R2.*2 R2 mi,2.~ mi2.~ mi2.~ mi4 r | R2. R2 R2.*2 R2 | 
R2.*3
R2 | la4 re,2~ | re4 r | mi4. la,8~ la4~ | la2 r4 | si2 | mi,2.~ |
mi2.~ | mi2.~ | mi4 r |

        }
}


IviolonUn= {
        \set Staff.instrumentName = \markup { \hcenter-in #23.5 "Violon 1  "}
   \set Staff.shortInstrumentName = "Vl. 1  "
   \set Staff.midiInstrument = "violin"
\relative do''
        {
                <la re\harmonic la''~>2. la''2.~-\markup { \italic "simile" } 
la2.~
la2.~ la2~ la2.~ la2.~ la2~ la2.~ la2.~ la2.~ la4 r |
       R2. R2 | R2.*2 | R2 | r4 \times 2/3 { r8 sib, dod } la'4~ |
la2.~ | la2.~| la4 r | la2.~ | la4 la~ | la2~ la4~ | la8 la4. la4 | la
la |
       \repeat unfold 11 { \times 4/6 { la16[ la la la la la] } } |
        }
}


IviolonDeux= {
        \set Staff.instrumentName = \markup { \hcenter-in #23.5 "Violon 2  "}
   \set Staff.shortInstrumentName = "Vl. 2  "
   \set Staff.midiInstrument = "violin"
\relative do''
        {
                <la la'>4-\markup "pizz" r2 R2.*3 R2 r2 <re, sol\harmonic
re''~>4-\markup "arco" re''2.~-\markup "simile" re2~ re2.~ re~ re2.~
re4 r |
       R2. do2~ | do2.~ | do4 dod2~ | dod2 | fad2.~| fad2.~| fad2.~|
fad4 r | <la,, re\harmonic la''~>2. la''2~-\markup { \italic "simile"
} la2.~ la2.~ la4 r |
       \times 4/6 { mi8[ mi16 mi mi mi] } \times 4/6 { mi16[ mi mi mi
mi mi] } \times 4/6 { mi16[ mi mi mi mi mi] } | \repeat unfold 8 {
\times 4/6 { re16[ re re re re re] } } |
        }
}


IviolonTrois= {
        \set Staff.instrumentName = \markup { \hcenter-in #23.5 "Violon 3  "}
   \set Staff.shortInstrumentName = "Vl. 3  "
   \set Staff.midiInstrument = "violin"
\relative do''
        {
                la'2.~\flageolet la2.~\flageolet la2.~\flageolet la4\flageolet 
r2 R2
R2.*2 R2 si2.~ si2.~ si2.~ si4 r |
       R2. R2 | r4 r8 fad~ fad4~| fad2.~| fad2 | sib2.~| sib2.~|
sib2.~| sib4 r | <re,, sol\harmonic re''~>2. re''2~-\markup { \italic
"simile" } re2.~ re2.~ re4 r |
       \times 4/6 { re8[ re16 re re re] } \times 4/6 { re16[ re re re
re re] } \times 4/6 { re16[ re re re re re] } | \repeat unfold 3 {
\times 4/6 { si16[ si si si si si] } } | \repeat unfold 5 { \times 4/6
{ si16[ si si si si si] } }
        }
}


IvioloncelleUn= {
        \set Staff.instrumentName = \markup { \hcenter-in #25 "Violoncelle 1  "}
   \set Staff.shortInstrumentName = "Vlc. 1  "
   \set Staff.midiInstrument = "cello"
\clef bass
\relative do''
        { \clef treble
                la4-\markup "pizz." r r | la r8 la r4 | la la la | la r2 | R2 | 
R2.*2 | R2 |
      \clef bass r4 << s2-\markup "arco" \\ \repeat "tremolo" 4 {
si,16 re16 } >> | \repeat "tremolo" 6 { si16 re16 } | \repeat
"tremolo" 6 { si16 re16 } | sold,4 r |
      R2. R2 R2.*2 R2 | \times 2/3 {r8 sold si}sol'!2~ | sol8 sold,
sol'!2~ | sol8[ mi~] mi[ red] \times 2/3 {sol \clef treble do[ si]} |
sol'2\glissando |
      la2.~\flageolet | la2~\flageolet | la2.~\flageolet |
la2\flageolet r4 | R2 | R2.*2 |
      \times 4/6 { la,8[ la16 la la la]} \times 4/6 {la[ la la la la
la]} \clef bass \repeat unfold 3 { \times 4/6 { mi[ mi mi mi mi mi] }
} |
        }
}



IvioloncelleDeux= {
        \set Staff.instrumentName = \markup { \hcenter-in #25 "Violoncelle 2  "}
   \set Staff.shortInstrumentName = "Vlc. 2  "
   \set Staff.midiInstrument = "cello"
\clef bass
\relative do''
        { \clef treble
                                la4-\markup "pizz." r r | la r8 la r4 | la la 
la | la r2 | R2 | R2.*2 | R2 |
      \clef bass  r4 << s2-\markup "arco" \\ \repeat "tremolo" 4 {
sold,16 lad16 } >> | \repeat "tremolo" 6 { sold16 lad16 } | \repeat
"tremolo" 6 { sold16 lad16 } | si4 r |
      R2. R2 R2.*2 R2 | r4 \repeat "tremolo" 4 { do16 red16 } |
\repeat "tremolo" 6 { do16 red16 } | \repeat "tremolo" 2 { do16 red16
} \repeat "tremolo" 4 { si16 do } | sold4 r |
      R2. R2 R2.*2 R2 | R2. | R2. | \times 4/6 { mi'8[ mi16 mi mi mi]
} \repeat unfold 4 { \times 4/6 { re[ re re re re re] } } |
        }
}

\layout {
        \context {
               \type "Engraver_group"
               \consists "Time_signature_engraver"
               \consists "Axis_group_engraver"
               \name "TimeSig"
               \override TimeSignature #'extra-offset = #'(-2.2 . 0.0 )
                }
        \context {
        \RemoveEmptyStaffContext }
   \context {
        \RemoveEmptyRhythmicStaffContext }
        \context { \Score
                \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 5)
               \accepts TimeSig
               }
        \context { \Staff
\remove "Time_signature_engraver"     
        }
        \context { \RhythmicStaff
\remove "Time_signature_engraver" }
        }
        \paper {
        line-width = #180
        systemSeparatorMarkup = \slashSeparator
        ragged-bottom = ##t
        left-margin = #20
}
%\Size


acteDeuxUn={
<<
\new TimeSig  { \override TimeSignature #'font-size = #4 \mesuresUn }
\new StaffGroup <<
        \new GrandStaff { <<
                \new Staff \IfluteUn
                \new Staff \IfluteDeux >> }

        \new GrandStaff { <<
                \new Staff \IclarinetteUn
                \new Staff \IclarinetteDeux
                >> }

        \new GrandStaff { <<
                \new Staff \IsaxophoneUn
                \new Staff \IsaxophoneDeux
                >> }

        >>


\new StaffGroup { \Ipercus }

%\new TimeSig \mesuresUn

\new ChoirStaff
        <<
                \new Staff \ISopranoUn
                \new Staff \ISopranoDeux
                \new Staff \IContralto
%               \new Staff \ITenor
%               \new Staff \IBarytonUn
%               \new Staff \IBarytonDeux
        >>

\new TimeSig \mesuresUn

\new StaffGroup
        <<
                \new GrandStaff
                { <<
                        \new Staff \IviolonUn
                        \new Staff \IviolonDeux
                        \new Staff \IviolonTrois
                >> }
                \new GrandStaff
                { <<
                        \new Staff \IaltoUn
                        \new Staff \IaltoDeux
                >> }
                \new GrandStaff
                { <<
                        \new Staff \IvioloncelleUn
                        \new Staff \IvioloncelleDeux
                >> }
                \new Staff \Icontrebasse
        >>
%        \new TimeSig \mesuresUn
        \new PianoStaff \Ipiano
    >>
}

\book {

   \score {
           \acteDeuxUn
   \header {
            piece = \markup  { \fill-line { \center-align {
       \fontsize #10 "Acte II"  " "
       \fontsize #6 "Premier Tableau" } } }
   }
% \midi { }
          }
 }




reply via email to

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