I was interested in the orchestral template that was posted by Hu Haipeng
and after minor fixes to get it to compile was wondering can someone
address these questions.

lilypond takes the input file and shoves it all into a single page
which is blah.
I would like to fiddle with the template but am wondering how to decide
where to page break.  What is the paper size for a "real" conductors book.

Are different groups of like instruments all on a single page,
strings, woodwinds,
percussion?

I loaded the ps file into gv and tried some different paper sizes and was able
to view bits of the file.  I dont know anything about orchestras so this is
just a learning exercise for me.
For some reason gmail renames attached lily files and treats them as binary
so this time I will try giving the file a txt extension.
\version "2.12.0"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% layout to create orchestra staff group
%% with non-spanned barlines between two instrument groups
\layout {
  \context {
    \StaffGroup
    \name Orchestra
    \remove "Span_bar_engraver"
    }
    \context {
      \Score
      \accepts Orchestra
    }
    \context {
      \Staff
      \override Glissando #'breakable = ##t
      \override TextSpanner #'breakable = ##t
      \override DynamicSpanner #'breakable = ##t
    }
  }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Layout to produce SquareStaff context
%% to group similar instruments in a staff group with thin square bracket
\layout {
  \context {
    \StaffGroup
    \name SquareStaff
    systemStartDelimiter = #'SystemStartSquare
  }
  \context {
    \Orchestra
    \accepts SquareStaff
  }
  \context {
    \StaffGroup
    \accepts SquareStaff
  }
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Layout to produce MarkLine context
%% to place rehearsal marks and texts above full score
\layout {
  \context {
    \type "Engraver_group"
    \name "MarkLine"
    \consists "Output_property_engraver"
    \consists "Axis_group_engraver"
    \consists "Mark_engraver"
    \consists "Metronome_mark_engraver"
    \consists "Script_engraver"
    \consists "Text_engraver"
    \consists "Text_spanner_engraver"
    \consists "Font_size_engraver"
    \override VerticalAxisGroup #'minimum-Y-extent = #'(-2 . 2 )
    \override TextSpanner #'breakable = ##t
  }
  \context {
    \Orchestra
    \accepts "MarkLine"
  }
  \context {
    \StaffGroup
    \accepts "MarkLine"
  }
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% layout to produce a smaller markline
%% put before 1st violin part
\layout {
  \context {
    \MarkLine
    \name "SmallMarkLine"
    \override MetronomeMark #'outside-staff-priority = #800
    \override RehearsalMark #'outside-staff-priority = #1200
  }
  \context {
    \Orchestra
    \accepts SmallMarkLine
  }
  \context {
    \StaffGroup
    \accepts SmallMarkLine
  }
}
  \score {
    \new Orchestra = "orchestra" <<
    \set Score.skipBars = ##f
    \new MarkLine { s1^"Maestoso" | s \mark \default | s  | }
    \new StaffGroup = "woodwind" <<
      \new SquareStaff <<
        \new Staff = "flutes" {
          \set Staff.instrumentName = "Piccolo"
          \set Staff.shortInstrumentName = "Picc."
        \relative c'' {  
          \clef "treble"
          \key c \major
          \time 4/4
          \transposition c''
          c1 | d | e | }
      }
      \new Staff = "flutes" {
          \set Staff.instrumentName = "Flutes 1 - 3"
          \set Staff.shortInstrumentName = "Fl."
        \relative c'' {  
          \clef "treble"
          \key c \major
          \time 4/4
          <e g>1 | <d g> | <c g'> | }
      }
      >>
      \new Staff = "oboes" {
        \set Staff.instrumentName = "Oboes 1 - 3"
        \set Staff.shortInstrumentName = "Ob."
        \relative c'' {  
          \clef "treble"
          \key c \major
          \time 4/4
          <e g c>1 | <d g b> | <c g' c> | }
      }
      \new Staff = "clarinets" {
        \set Staff.instrumentName = \markup {
          \column { \line { "Clarinets 1 - 3" }
            \line { "in B" \smaller \flat } } }
        \set Staff.shortInstrumentName = "Cl."
        \relative c' {  
          \clef "treble"
          \key d \major
          \time 4/4
          \transposition bes
          <fis a>1 | <e a> | <d a'> | }
      }
      \new Staff = "bassoons" {
        \set Staff.instrumentName = "Bassoons 1 & 2"
        \set Staff.shortInstrumentName = "Bn."
        \relative c {  
          \clef "bass"
          \key c \major
          \time 4/4
          <c g'>1 | <b g'> | <c g'> | }
      }
    >>
    \new StaffGroup = "brass" <<
      \new SquareStaff = "horns" <<
        \new Staff = "hornsI" {
          \set Staff.instrumentName = \markup {
            \column { \line { "Horn 1 & 3" }
              \line { "in F" } } }
          \set Staff.shortInstrumentName = "Hn. 1 & 3"
        \relative c'' {  
          \clef "treble"
          \key g \major
          \time 4/4
          \transposition f
          <g b>1 | <fis a> | <g b> | }
      }
      \new Staff = "hornsII" {
        \set Staff.instrumentName = \markup {
          \column { \line { "Horn 2 & 4" }
            \line { "in F" } } }
        \set Staff.shortInstrumentName = "Hn. 2 & 4"
        \relative c' {  
          \clef "treble"
          \key g \major
          \time 4/4
          \transposition f
          <b d>1 | <a d> | <b d> | }
      }
      >>
      \new Staff = "trumpets" {
        \set Staff.instrumentName = \markup {
          \column { \line { "Trumpets 1 - 3" }
            \line { "in B" \smaller \flat } } }
        \set Staff.shortInstrumentName = "Tp."
        \relative c' {  
          \clef "treble"
          \key d \major
          \time 4/4
          \transposition bes
          <fis a d>1 | <a cis e> | <a d fis> | }
      }
      \new SquareStaff = "trombones" <<
        \new Staff = "tromboneI" {
          \set Staff.instrumentName = "Trombone 1"
          \set Staff.shortInstrumentName = "Tb.1"
          \relative c' {  
            \clef "tenor"
            \key c \major
            \time 4/4
            <g c>1 | <g d'> | <g e'> | }
        }
        \new Staff = "tromboneII" {
          \set Staff.instrumentName = "Trombones 2 & 3"
          \set Staff.shortInstrumentName = "Tb.23"
          \relative c {  
            \clef "bass"
            \key c \major
            \time 4/4
            c1 | g | c | }
        }
      >>
      \new Staff = "tuba" {
        \set Staff.instrumentName = "Tuba"
        \set Staff.shortInstrumentName = "Tu."
        \relative c' {  
          \clef "bass"
          \key c \major
          \time 4/4
          c1 | g | c | }
      }
    >>
    \new StaffGroup = "miselaneous" <<
      \new Staff = "timpani" {
        \set Staff.instrumentName = "Timpani"
        \set Staff.shortInstrumentName = "Tim."
        \relative c {  
          \clef "bass"
          \key c \major
          \time 4/4
          c1 | g | c1:32 | }
      }
      \new SquareStaff = "percussion" <<
        \new Staff = "percI" {
          \set Staff.instrumentName = "Percussion I"
          \set Staff.shortInstrumentName = "Perc. I"
          \relative c'' {  
            \clef "percussion"
            \time 4/4
            b1^"cym." | b | b | }
        }
        \new Staff = "percII" {
          \set Staff.instrumentName = "Percussion II"
          \set Staff.shortInstrumentName = "Perc. II"
          \relative c'' {  
            \clef "percussion"
            \time 4/4
            b1^"tri." | b | b:32 | }
        }
        \new Staff = "percIII" {
          \set Staff.instrumentName = "Percussion III"
          \set Staff.shortInstrumentName = "Perc. III"
          \relative c'' {  
            \clef "percussion"
            \time 4/4
            b4^"sn." r r2 | b4 r r2 | b1:32 | }
        }
        \new Staff = "percIV" {
          \set Staff.instrumentName = "Percussion IV"
          \set Staff.shortInstrumentName = "Perc. IV"
          \relative c'' {  
            \clef "percussion"
            \time 4/4
            b4^"bd." r r2 | b4 r r2 | b1:32 | }
        }
      >>
      \new PianoStaff = "harp" <<
        \set PianoStaff.instrumentName = "Harp"
        \set PianoStaff.shortInstrumentName = "Hrp."
        \set PianoStaff.connectArpeggios = ##t
        \new Staff = "rh" { 
          \relative c' {
            \clef "treble"
            \key c \major
            \time 4/4   
            <e g c>1\arpeggio | <d g b d>\arpeggio | <e g c e>\arpeggio | }
        }
        \new Staff = "lh" { 
          \relative c {
            \clef "bass"
            \key c \major
            \time 4/4   
            <c g' c>\arpeggio | <g d' g>\arpeggio | <c g' c> | }
        }
      >>
    >>
    \new ChoirStaff = "chorus" <<
      \new Staff = "soprano" {
        \set Staff.instrumentName = "Soprano"
        \set Staff.shortInstrumentName = "S."
        << \new Voice = "sop" {
          \relative c'' {  
            \clef "treble"
            \key c \major
            \time 4/4   
            c1 | d | e | } }
          \new Lyrics \lyricsto "sop" \lyricmode { do re mi }
        >>
      }
      \new Staff = "alto" {
        \set Staff.instrumentName = "Alto"
        \set Staff.shortInstrumentName = "A."
        << \new Voice = "alt" {
          \relative c' {  
            \clef "treble"
            \key c \major
            \time 4/4   
            e1 | g | g | } }
        \new Lyrics \lyricsto "alt" \lyricmode { mi sol sol }
         >>
      }
      \new Staff = "tenor" {
        \set Staff.instrumentName = "Tenor"
        \set Staff.shortInstrumentName = "T."
        << \new Voice = "ten" {
          \relative c' {  
            \clef "bass"
            \key c \major
            \time 4/4   
            g1 | b | c | } }
        \new Lyrics \lyricsto "ten" \lyricmode { sol si do }
        >>
      }
      \new Staff = "bass" {
        \set Staff.instrumentName = "Bass"
        \set Staff.shortInstrumentName = "B."
        << \new Voice = "bas" {
          \relative c {  
            \clef "bass"
            \key c \major
            \time 4/4   
            c1 | g | c | } }
        \new Lyrics \lyricsto "bas" \lyricmode { do sol do }
        >>
      }
    >>
    \new SmallMarkLine { s1^"Maestoso" | s \mark \default | s | }
    \new StaffGroup = "strings" <<
      \new SquareStaff = "violins" <<
        \new Staff = "violin I" {
          \set Staff.instrumentName = "Violin I"
          \set Staff.shortInstrumentName = "Vn. I"
          \clef "treble"
          \key c \major
          \time 4/4     
          \relative c'' {  <e c'>1 | <g d'> | <g e'> | }
        }
        \new Staff = "violin II" {
          \set Staff.instrumentName = "Violin II"
          \set Staff.shortInstrumentName = "Vn. II"
          \relative c' {  
            \clef "treble"
            \key c \major
            \time 4/4   
            <e c'>1 | <g d'> | <g e'> | }
        }
      >>
      \new Staff = "viola" {
        \set Staff.instrumentName = "Viola"
        \set Staff.shortInstrumentName = "Vl."
          \relative c' {  
            \clef "alto"
            \key c \major
            \time 4/4   
            <g c>1 | <b d> | <c e> | }
      }
      \new SquareStaff = "Cello and Bass" <<
        \new Staff = "violoncello" {
          \set Staff.instrumentName = "Violoncello"
          \set Staff.shortInstrumentName = "Vc."
          \relative c {  
            \clef "bass"
            \key c \major
            \time 4/4   
            <c g'>1 | <g g'> | <c g'> | }
        }
        \new Staff = "contrabass" {
          \set Staff.instrumentName = "Contrabass"
          \set Staff.shortInstrumentName = "Cb."
          \relative c {  
            \clef "bass"
            \key c \major
            \time 4/4   
            \transposition c
            c1 | g | c | }
        }
        >>
      >>
    >>
    \layout {
      \context {
        \RemoveEmptyStaffContext
      }
    }
  }

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

Reply via email to