lilypond-user
[Top][All Lists]
Advanced

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

orchestral template problem


From: 胡海鹏 Hu Haipeng
Subject: orchestral template problem
Date: Fri, 26 Dec 2008 00:28:20 +0800 (CST)

Hello,
  I'm suffering from my very large orchestra template. I think if all are good, I can contribute it as one of the templates at the end of LM.
  The current problem is, some composers said there are two equivalent thick lines at the left, not one thick long and some thinner group lines and square brackets for similar instruments. I always use my large def file, the defs for this template are copied below. Is the output good? If yes, I'll see what's wrong with my large definition file.
  Note: I'm doing this (add clefs, keys and notes in the template originally containing variable callings to my own music) in a hurry, because the time of GMT+8 is 00:20 now! So there may be some error typings. Please correct them if seeing some.
A Late Merry Xmas To You All!
Haipeng
\version "2.11.65"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 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"
        \relative c'' { \clef treble \key c \major \time 4/4 <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
      }
    }
  }


 



[广告] 重奖 悬赏kfc3v3 球衣

reply via email to

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