lilypond-user
[Top][All Lists]
Advanced

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

Re: User-defined function in lilypond-book


From: David Kastrup
Subject: Re: User-defined function in lilypond-book
Date: Tue, 29 May 2018 22:57:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Peter O'Doherty <address@hidden> writes:

> Hi,
>
> Is it possible to use a user-defined function in lilypond-book? When I
> include one such function as below, I get this error:
> error: unrecognized string, not in text script or \lyricmode
>
> This is the start of the code block:
>
> begin [fragment,staffsize=16,notime,noindent]{lilypond}
> userdefinedfunction =
> #(define-music-function (parser location music) (ly:music?)
> ...
> ...
> \end {lilypond}

Why would you use the "fragment" option when not just writing a music
fragment but essentially a full LilyPond source?

-- 
David Kastrup



reply via email to

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