Hello all,
I would like to write a music function that takes a single-note music
expression and attaches some markup text to it. I tried to write:
\version "2.12.3"
myfunc = #(define-music-function (parser location mymusic) (ly:music?)
#{ $mymusic ^"Hello, world!" #}
)
\relative c' {
\myfunc c1
}
But Lilypond chokes with a syntax error on the ^. Similarly it does
not work to take a music expression and attach an articulation,
dynamic, etc. I guess this is because a music expression can
potentially be a whole series of notes, and I need to somehow unpack
it using Scheme and get to the single note inside it. Can anyone
help?
Thanks,
Nathan Reed
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user