Good morning List,

Sorry if this is a simple question, but I was wondering if the following
code cand be made shorter by putting these elements of code somewhere that
can be shared by all staves.

\consists "Page_turn_engraver"
    \consists "Melody_engraver"
    \override Stem.neutral-direction = #'()
    \override MultiMeasureRest #'minimum-length = #10


Here is my file:


\version "2.19.11"

\include "../Notes/bassoonOne.ily"
\include "../global-defs.ily"
\include "../header-part.ily"

\header {
  instrument = "Bassoon 1"
  poet = "Bassoon 1"
}

\paper {
  % system-count = #8
  % page-count = #1
  ragged-last-bottom = ##f
  ragged-bottom = ##f
}

\score {
  \new Staff \with {
    \consists "Page_turn_engraver"
    \consists "Melody_engraver"
    \override Stem.neutral-direction = #'()
    \override MultiMeasureRest #'minimum-length = #10
  }
  <<
    \globalI
    \partboilerplate
    \bassoonINotesI
  >>
  \header { piece = "I. Requiem Aeternum" }
}

\score {
  \new Staff \with {
    \consists "Page_turn_engraver"
    \consists "Melody_engraver"
    \override Stem.neutral-direction = #'()
    \override MultiMeasureRest #'minimum-length = #10
  }
  <<
    \globalII
    \partboilerplate
    \bassoonINotesII
  >>
  \header { piece = "II. Tuba Mirum" }
}

\score {
  \new Staff \with {
    \consists "Page_turn_engraver"
    \consists "Melody_engraver"
    \override Stem.neutral-direction = #'()
    \override MultiMeasureRest #'minimum-length = #10
  }
  <<
    \globalIII
    \partboilerplate
    \bassoonINotesIII
  >>
  \header { piece = "III. Dies Irae" }
}

\score {
  \new Staff \with {
    \consists "Page_turn_engraver"
    \consists "Melody_engraver"
    \override Stem.neutral-direction = #'()
    \override MultiMeasureRest #'minimum-length = #10
  }
  <<
    \globalIV
    \partboilerplate
    \bassoonINotesIV
  >>
  \header { piece = "IV. Lacrymosa" }
}

\score {
  \new Staff \with {
    \consists "Page_turn_engraver"
    \consists "Melody_engraver"
    \override Stem.neutral-direction = #'()
    \override MultiMeasureRest #'minimum-length = #10
  }
  <<
    \globalV
    \partboilerplate
    \bassoonINotesV
  >>
  \header { piece = "V. Libera me" }
}


%{
convert-ly (GNU LilyPond) 2.19.15  convert-ly: Processing `'...
Applying conversion: 2.19.2, 2.19.7, 2.19.11
%}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to