lilypond-user
[Top][All Lists]
Advanced

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

Re: top-level markup in Scheme


From: Valentin Petzel
Subject: Re: top-level markup in Scheme
Date: Fri, 13 May 2022 13:30:03 +0000 (UTC)

Hello Werner,

if you intend to create Markup- or Score-Section from Scheme you might want to 
directly invoke (add-text some-markup) and (add-score some-score). This would 
allow you to cleanly handle stuff like inserting multiple markups and scores at 
the same time from a bit of scheme code.

Inserting a top level score or markup calls the top-level-score/markup-handler, 
which defaults to doing the same thing.

Cheers,
Valentin

13.05.2022 13:05:05 Werner LEMBERG <wl@gnu.org>:

> 
>>> On the other hand, a LilyPond input file containing only
>>> 
>>> ```
>>> #(make-italic-markup "foo")
>>> ```
>>> 
>>> prints nothing.  I now wonder how I can modify the latter to make
>>> it actually work – what is the 'appropriate hook'?
>> 
>> s/#/$
> 
> This did the trick, thanks!  Reading the documentation about '$' with
> the benefit of hindsight explains it...
> 
> 
>     Werner



reply via email to

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