Bertalan Fodor (LilyPondTool) wrote:
See the attached image for a simplified structure definition of a
score block.
Nice! I don't agree with all details, though.
Well, \set is a music expression, namely a music property definition.
What is good to remember is that there is 3 kinds of output
definition: \paper, \layout and \midi
If you read carefully in lily/parser.yy, you'll notice that a \paper
block cannot
be included within a \score block. On the other hand, you forgot to
mention
that a \header block can be included in a \score block.
My other main objection to your nice graph, is that a composite_music
is either a simultaneous_music << ... >> or a sequential_music {...}.
Also, your graph does not mention the prefix_composite_music, i.e.
that you can have such things as \repeat volta 2 {...} or \relative
c'' << ... >> or ...
This is natural, since the intention is to just provide a simplified
overview, still
there have been some questions over the years, related to exactly this
issue.
/Mats