Am 29. Mai 2018 22:14:48 MESZ schrieb Peter O'Doherty
<kevinpeterodohe...@gmail.com>:
>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}
>
I'm not sure but I suspect that the fragment option wraps the whole example in
a music expression, which makes your definition go *into* a music expression -
where it is not allowed.
Urs
>
>Thanks,
>Peter
>
>
>
>
>_______________________________________________
>lilypond-user mailing list
>lilypond-user@gnu.org
>https://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user