]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/midi/sequence-name.ly
Set the sequence name in MIDI using title information from
[lilypond.git] / input / regression / midi / sequence-name.ly
1 \version "2.19.25"
2
3 \header {
4   texidoc="The MIDI sequence generated from a score should get its name
5   from the title defined in the score's @code{\header} block (if any).
6   The title used for layout can be overridden for MIDI output by
7   specifying a separate @code{midititle} in the @code{\header} block.
8   If the score does not define a title of its own, and has no enclosing
9   @code{\bookpart}, @code{\book}, or top-level scope with a @code{\header}
10   block that defines a title, either, the MIDI sequence should get the
11   default name."
12 }
13
14 music = \new Staff { c1 }
15
16 % Book without a \header block
17 \book {
18
19   % score with a \header block including a title -- the MIDI sequence
20   % should get its name from this \header block
21   \score {
22     \music
23     \header { title = "Title shared between layout and MIDI" }
24     \layout { }
25     \midi { }
26   }
27
28   % score with no title, but a midititle defined in a \header block --
29   % the MIDI sequence should be named using the midititle in this \header
30   % block
31   \score {
32     \music
33     \header { midititle = "No title for layout, but a title for MIDI" }
34     \layout { }
35     \midi { }
36   }
37
38   % score with a title and a midititle defined in a \header block -- the
39   % MIDI sequence should get the midititle in this \header block as its
40   % name
41   \score {
42     \music
43     \header {
44       title = "Title for layout"
45       midititle = "Title for MIDI"
46     }
47     \layout { }
48     \midi { }
49   }
50
51   % Book part with no \header block
52   \bookpart {
53
54     % score without a \header -- the MIDI sequence should get the default
55     % name
56     \score {
57       \music
58       \layout { }
59       \midi { }
60     }
61   }
62
63 }