lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to view the ("full") input that lilypond is engraving?


From: David Kastrup
Subject: Re: How to view the ("full") input that lilypond is engraving?
Date: Wed, 13 Mar 2019 00:07:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Jaime T <address@hidden> writes:

> http://lilypond.org/doc/v2.19/Documentation/notation/file-structure
> (NR, section 3.1.5 "File structure") says:
>
> ...A file containing only "{ c'4 d' e'2 }" will be translated into:
>
> \book {
>   \score {
>     \new Staff {
>       \new Voice {
>         { c'4 d' e'2 }
>       }
>     }
>     \layout { }
>   }
>   \paper { }
>   \header { }
> }
>
> Is there any way I can get lilypond to output and show me the final
> version of my input i.e. *after* lilypond has included all these
> necessary implicit additions to my source input?

No.  LilyPond does not actually add anything to the input.  It just
processes partial forms of input differently from complete forms so that
it has the equivalent effect of some comparatively complete form.

Of course, you can try to write up a replacement for all of LilyPond's
processing that does output the equivalent input for all the available
options of arranging input.

But it does not gain you any insights into LilyPond's operation because
LilyPond does not actually work in that way.

> I'd love to be able to see exactly what goes into the engraver's
> front-end (and I'm sure that it's often *not* the same as what is in
> my .ly "source"!)

Well, LilyPond's idea of an "engraver" is a lot different from yours,
apparently, so it's anyone's guess what you even mean by "the engraver's
front-end".

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]