> Would it be possible to reformulate a bit to make it even more clear
> that this is analogous to how \layout blocks behave (the only
> difference being that a \score block that contains nor a layout
> neither a midi block implicitly contains a layout block). For
> example: [...]
Sorry for
On 2023-11-12 14:31, Werner LEMBERG
wrote:
MIDI settings can be changed globally (or in a book or bookpart), but
the generation of an actual MIDI file is only triggered when a \midi
block is encountered inside of a \score .
Thanks
> MIDI settings can be changed globally (or in a book or bookpart), but
> the generation of an actual MIDI file is only triggered when a \midi
> block is encountered inside of a \score .
Thanks for the idea and wording.
https://gitlab.com/lilypond/lilypond/-/merge_requests/2171
Werner LEMBERG writes:
> +A @code{@bs{}midi} block outside of @code{@bs{}score} does
> +@emph{not} create a MIDI file.}
MIDI settings can be changed globally (or in a book or bookpart), but
the generation of an actual MIDI file is only triggered when a \midi
block is encountered inside of a
> Thanks. I'll add this information to the NR.
>
>
> Right now, the NR says the following
> (https://lilypond.org/doc/v2.24/Documentation/notation/the-midi-block.html).
> What
> do you think needs to be clarified?
>
> To create a MIDI output file from a LilyPond input file, insert
>
Thanks. I'll add this information to the NR.
Right now, the NR says the following (https://lilypond.org/doc/v2.24/Documentation/notation/the-midi-block.html). What do you think needs to be clarified?
To create a MIDI
>> I wonder whether it is expected that this simple input
>>
>> ```
>> { c' }
>> \midi{}
>> ```
>>
>> doesn't create a MIDI file.
>
>
> Yes. [...]
Thanks. I'll add this information to the NR.
Werner
> I wonder whether it is expected that this simple input
>
> ```
> { c' }
> \midi{}
> ```
>
> doesn't create a MIDI file.
Yes. Otherwise you could not do
```
\midi { global MIDI settings ... }
fooMusic = ...
\score { \fooMusic \layout { } }
\score { \unfoldRepeats \fooMusic \midi { } }
[2.24.2, 2.25.10]
I wonder whether it is expected that this simple input
```
{ c' }
\midi{}
```
doesn't create a MIDI file. I have to explicitly put everything into
a `\score` block to get that.
For me, this looks odd, and I couldn't find a hint in the
documentation for that behaviour.