4 texidoc="If a score has a @code{\header} block which defines a title,
5 this title should override any title defined in a @code{\header} block
6 of the score's enclosing @code{\bookpart} or @code{\book} (or a title
7 defined in a top-level @code{\header} block) when naming the MIDI
8 sequence generated from the score. Otherwise, if the score has no title
9 defined, the MIDI sequence generated from the score should get named
10 using the title defined in the @code{\header} block of the nearest
11 enclosing @code{\bookpart}, @code{\book}, or top-level scope that
12 contains a title definition."
13 title = "Top-level title"
16 music = \new Staff { c1 }
18 % Book with a title defined in a \header block, and book parts
20 \header { title = "Book" }
22 % score without a \header block outside of any book part -- the MIDI
23 % sequence should get the title of the book as its name
30 % score with a \header and a title outside of any book part -- the MIDI
31 % sequence should be named with the title from this \header block
34 \header { title = "Score in a \book" }
39 % Book part with a \header block and a title
41 \header { title = "Book part" }
43 % score without a \header block -- the MIDI sequence should get its name
44 % from the title of the enclosing book part
51 % score with a \header (and a title) of its own -- the MIDI sequence
52 % should get its name from the title in this \header block
55 \header { title = "Score in a book part (w/ a title) of a book" }
61 % Book part without a \header block
64 % score without a \header block -- the MIDI sequence should be named
65 % using the title from the enclosing book
72 % score with a \header block and title -- the MIDI sequence should get
73 % its name from the title in this \header block
76 \header { title = "Score in a book part (w/o a title) of a book" }