lilypond-user
[Top][All Lists]
Advanced

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

Re: Produce \header in function


From: David Kastrup
Subject: Re: Produce \header in function
Date: Fri, 19 Nov 2021 12:24:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Павел <budanov.pavel@gmail.com> writes:

> Hello lilyponders! I want to produce \header block in my function, to
> use my function instead \header block. But I can't seem to find the
> correct syntax for this. It doesn't work like that:
>
> genheader = #(define-music-function
>     (mystring) ( string? ) #{
>         \header { piece = \markup\bold #mystring }
>     #})

A header is not music.  Use define-scheme-function instead.

-- 
David Kastrup



reply via email to

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