Re: top-level `\midi` doesn't work as expected

2023-11-16 Thread Werner LEMBERG
> 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

Re: top-level `\midi` doesn't work as expected

2023-11-12 Thread Mats Bengtsson
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

Re: top-level `\midi` doesn't work as expected

2023-11-12 Thread Werner LEMBERG
> 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

Re: top-level `\midi` doesn't work as expected

2023-11-12 Thread David Kastrup
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

Re: top-level `\midi` doesn't work as expected

2023-11-12 Thread Werner LEMBERG
> 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 >

Re: top-level `\midi` doesn't work as expected

2023-11-12 Thread Jean Abou Samra
  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

Re: top-level `\midi` doesn't work as expected

2023-11-12 Thread Werner LEMBERG
>> 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

Re: top-level `\midi` doesn't work as expected

2023-11-12 Thread Jean Abou Samra
> 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 { } }

top-level `\midi` doesn't work as expected

2023-11-11 Thread Werner LEMBERG
[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.