Ah, thanks for that. I thought the fragment argument was compulsory.
Working now.
Peter
On 29/05/18 21:57, David Kastrup wrote:
Peter O'Doherty <kevinpeterodohe...@gmail.com> 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?
//=============================
// Peter O'Doherty
// http://www.peterodoherty.net
// m...@peterodoherty.net
//=============================
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user