lilypond-user
[Top][All Lists]
Advanced

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

Re: Markup in scheme


From: Thomas Morley
Subject: Re: Markup in scheme
Date: Sat, 31 Oct 2020 19:47:27 +0100

Am Sa., 31. Okt. 2020 um 16:30 Uhr schrieb John Schlomann
<jschlomann@wideopenwest.com>:
>
> In the following snippet, the first markup works fine. The second gives no 
> errors, but outputs nothing.
>
>
>
> Why does the scheme version not work?
>
>
>
> \version "2.20.0"
>
> \markup{"First markup"}
>
> #(markup #:line (#:simple "Second markup"))
>
>
>
> Thanks,
>
> John
>
>

To have LilyPond do something with #(markup ...) you need to explain
to LilyPond _what_ to do with it".

Martin's example embeds it in a music expression. -> Initiate a TextScript-grob

You can store and call it like:
foo = #(markup #:line (#:simple "Second markup"))
\foo
It is called at top level. -> Create top level text

Directly and on top level you could do:
$(markup #:line (#:simple "Second markup"))
Directly evaluate the expression (here at top level). -> Create top level text

HTH,
  Harm



reply via email to

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