On Tue 09 Nov 2021 at 10:41:22 (-0800), Mark Stephen Mrotek wrote: > A piano piece I am engraving has several sections. Each has different > meters, keys, and number of voices. Each is coded in a separate score for > ease of future editing. > > The entire piece is structured > > \header { > title = "title" > composer = "composer" > opus = "opus" > } > > \include "section1.ly" > \include "section2.ly" > \include "section3[.]ly" > \include "section4.ly" Yes the quote marks [were] not the correct > style here. > > When compiled the opus appears before each section. > > Reading > > https://lilypond.org/doc/v2.22/Documentation/notation/creating-titles-headers-and-footers > > "Note, though, that only piece and opus fields are printed by default in > Score Titles unless the \paper variable, print-all-headers, is set to #t." > > Would someone please provide a functioning explanation has to how this apply > this to my current piece?
Tricky. You've given the header and nothing else: the /file/ structure (ie includes) has nothing to do with the musical structure seen by LP. We need to know which headers you want to see at the start of each section (≡ score, presumably). I would write a mickey mouse file containing nothing but structure, like the attached, in order to work out what's right for you. Cheers, David.
%%\version "2.18.2" % 2015-11-06 %%\include "Letter.lily" %%\include "Margins-10-15.lily" \header { title = "The Title in external header 0" subtitle = "The Subtitle 0" subsubtitle = "The Subsubtitle 0" poet = "The Poet 0" composer = "The Composer 0" meter = "The Meter 0" opus = "The Opus 0" arranger = "The Arranger 0" instrument = "The Instrument 0" dedication = "The Dedication 0" piece = "The Piece 0" head = "The Head 0" copyright = "The Copyright 0" tagline = "The Tagline 0" } \layout { indent = 0 \context { \Staff \remove Time_signature_engraver \remove Bar_engraver } } #(set-global-staff-size 20) \paper { ragged-right = ##f ragged-last-bottom = ##f } thescore = \score { \new ChoirStaff << \new Staff << \new Voice { \clef treble s1 } >> \new Staff << \new Voice { \clef treble s1 } >> \new Staff << \new Voice { \clef "treble_8" s1 } >> \new Staff << \new Voice { \clef bass s1 } >> >> \layout { } \header { title = "The Title in internal header 1" subtitle = "The Subtitle 1" subsubtitle = "The Subsubtitle 1" poet = "The Poet 1" composer = "The Composer 1" meter = "The Meter 1" opus = "The Opus 1" arranger = "The Arranger 1" instrument = "The Instrument 1" dedication = "The Dedication 1" piece = "The Piece in internal header 1" head = "The Head 1" copyright = "The Copyright 1" tagline = "The Tagline 1" } } \score { \thescore } \score { \thescore \header { title = "The Title in internal header 2" subtitle = "The Subtitle 2" subsubtitle = "The Subsubtitle 2" poet = "The Poet 2" composer = "The Composer 2" meter = "The Meter 2" opus = "The Opus 2" arranger = "The Arranger 2" instrument = "The Instrument 2" dedication = "The Dedication 2" piece = "The Piece in internal header 2" head = "The Head 2" copyright = "The Copyright 2" tagline = "The Tagline 2" } } \score { \thescore \header { title = "The Title in internal header 3" subtitle = "The Subtitle 3" subsubtitle = "The Subsubtitle 3" poet = "The Poet 3" composer = "The Composer 3" meter = "The Meter 3" opus = "The Opus 3" arranger = "The Arranger 3" instrument = "The Instrument 3" dedication = "The Dedication 3" piece = "The Piece in internal header 3" head = "The Head 3" copyright = "The Copyright 3" tagline = "The Tagline 3" } }
%%\version "2.18.2" % 2015-11-06 %%\include "Letter.lily" %%\include "Margins-10-15.lily" \header { title = "The Title in external header 0" subtitle = "The Subtitle 0" subsubtitle = "The Subsubtitle 0" poet = "The Poet 0" composer = "The Composer 0" meter = "The Meter 0" opus = "The Opus 0" arranger = "The Arranger 0" instrument = "The Instrument 0" dedication = "The Dedication 0" piece = "The Piece 0" head = "The Head 0" copyright = "The Copyright 0" tagline = "The Tagline 0" } \layout { indent = 0 \context { \Staff \remove Time_signature_engraver \remove Bar_engraver } } #(set-global-staff-size 20) \paper { ragged-right = ##f ragged-last-bottom = ##f print-all-headers = ##t } thescore = \score { \new ChoirStaff << \new Staff << \new Voice { \clef treble s1 } >> \new Staff << \new Voice { \clef treble s1 } >> \new Staff << \new Voice { \clef "treble_8" s1 } >> \new Staff << \new Voice { \clef bass s1 } >> >> \layout { } \header { title = "The Title in internal header 1" subtitle = "The Subtitle 1" subsubtitle = "The Subsubtitle 1" poet = "The Poet 1" composer = "The Composer 1" meter = "The Meter 1" opus = "The Opus 1" arranger = "The Arranger 1" instrument = "The Instrument 1" dedication = "The Dedication 1" piece = "The Piece in internal header 1" head = "The Head 1" copyright = "The Copyright 1" tagline = "The Tagline 1" } } \score { \thescore } \score { \thescore \header { title = "The Title in internal header 2" subtitle = "The Subtitle 2" subsubtitle = "The Subsubtitle 2" poet = "The Poet 2" composer = "The Composer 2" meter = "The Meter 2" opus = "The Opus 2" arranger = "The Arranger 2" instrument = "The Instrument 2" dedication = "The Dedication 2" piece = "The Piece in internal header 2" head = "The Head 2" copyright = "The Copyright 2" tagline = "The Tagline 2" } } \score { \thescore \header { title = "The Title in internal header 3" subtitle = "The Subtitle 3" subsubtitle = "The Subsubtitle 3" poet = "The Poet 3" composer = "The Composer 3" meter = "The Meter 3" opus = "The Opus 3" arranger = "The Arranger 3" instrument = "The Instrument 3" dedication = "The Dedication 3" piece = "The Piece in internal header 3" head = "The Head 3" copyright = "The Copyright 3" tagline = "The Tagline 3" } }