lilypond-user
[Top][All Lists]
Advanced

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

Re: Markup functions and punctuation in lyrics


From: Aaron Hill
Subject: Re: Markup functions and punctuation in lyrics
Date: Tue, 02 Nov 2021 10:00:59 -0700
User-agent: Roundcube Webmail/1.4.9

On 2021-11-02 8:23 am, R. Padraic Springuel wrote:
On Oct 31, 2021, at 6:02 PM, David Kastrup <dak@gnu.org> wrote:

If the ugliness of juxtaposition is ok, you may use things like

\,\man

for concatenating stuff, too.

Not sure if this was already suggested, but could you use something like this to concatenate arbitrary markup?

%%%%
"\+" =
#(define-scheme-function
  (first second) (markup? markup?)
  #{ \markup \concat { #first #second } #})

foo =
#(let ((idx 0))
  (define (inc) (set! idx (1+ idx)) idx)
  (define-scheme-function () ()
   #{ \markup $(format #f "~r" (inc)) #}))

{ b'4 4 4 4 }
\addlyrics { \+ \foo , \+ \foo , and \+ \foo ! }
%%%%


-- Aaron Hill



reply via email to

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