[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help, simple music function not compiling
From: |
Eric Dedieu |
Subject: |
Help, simple music function not compiling |
Date: |
Sat, 29 Jan 2011 23:23:18 +0100 |
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
- Help, simple music function not compiling,
Eric Dedieu <=