On Fri, Nov 15, 2024 at 10:58 PM Werner LEMBERG <w...@gnu.org> wrote:
>
> [Sending this e-mail again to the 'lilypond-user' list, which we
> forgot to include in our conversation.]
>
> >> Maybe you are mixing up the the `\score` *markup* command (to be
> >> used within `\markup` or `\markuplist`) with the 'normal',
> >> top-level `\score` command?
> >
> > My initial reaction to that question was: There's a difference? (I've
> > been using Lilypond for eight years now, and I've never encountered
> > this information.)
>
> Yes, there is one.  Consider the following example.
> [...]
> If you compile that you can see that the `\score` markup command
> suppresses page turns because they don't make sense in markup.
>

And I suspect that that's why \score-lines isn't called \score as well.

> > My next reaction was: Why is the command the same, when the behavior
> > is different?
>
> For convenience.  Why should it be called differently?

In \markuplist, there's a command that does something similar but has
a different name (\score-lines). If I'm understanding correctly (a
dangerous assumption 8-) ), \score-lines works like TeX's horizontal
mode, and \score works like its vertical mode. (A \markup must appear
all on one page.)

> I dare to say
> that in the great majority of all use cases it doesn't make a
> difference.  Your report is the first one ever related to MIDI and
> markup, as far as I remember.
>
> > Why doesn't the \markup version of \score call the "normal" version
> > of \score, with all its features?
>
> Because some features don't make sense in markup, as mentioned above.
> Note also that the creation of MIDI files is done by `lilypond` in a
> separate pass that completely ignores markup.
>

That second reason makes a lot more sense.

> > If you don't want to change \markup's version of \score to do
> > exactly what the top level \score does, then section 3.2.1
> > (Structure of a score) and 3.6.3 (The MIDI block) are logical places
> > to put a warning.  Right after the "Note: There must be only one
> > outer music expression ..." the following should be added: "Note
> > also that if a \score is inside of a \markup or \markuplist block,
> > no MIDI will be created, even with a \midi block."
>
> Thanks.  I've solved it a bit differently, please check
>
>   https://gitlab.com/lilypond/lilypond/-/merge_requests/2495
>
> again.
>

I've suggested changing line 3896 to "called @code{\score} that
doesn't produce MIDI output, even if a @code{\midi} block is present,"

At least I think I did. (I'm not familiar with the system.)

--- Christopher Carl Heckman

Reply via email to