Hi lilypond helpers,
Here is a small program that does not compile:
-----------------------------------
\version "2.12.3"
%% the function that will fail
tempoMarkEqual =
#(define-music-function (parser location before after)
(string? string?)
#{
\mark \markup \tiny { \note $before #1 = \note $after #1 }
#} )
%% example begins here
{
\time 2/4
re'2
|
%% this works well
\mark \markup \tiny {\note #"8" #1 = \note #"8" #1 }
re'2
|
%% this is an attempt to get the same result with a function
\tempoMarkEqual #"8" #"8"
re'2
}
------------------------------
The first \mark command works well, but the function fails with:
<string>:2:30: Error : syntax error, unexpected STRING_IDENTIFIER,
expecting SCM_IDENTIFIER or SCM_TOKEN
\mark \markup \tiny { \note
\lilyvartmpb #1 = \note \lilyvartmpc #1 }
What did I miss ?
Thanks,
Eric
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user