lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unexpected EVENT_IDENTIFIER in music function


From: Michael Pozhidaev
Subject: Unexpected EVENT_IDENTIFIER in music function
Date: Sun, 11 Jan 2009 06:19:33 +0600

Hello!

If I put the \sustainOff event in music function after variable I
receive the following error message:

<string>:2:13: error: syntax error, unexpected EVENT_IDENTIFIER
\lilyvartmpb 
             \sustainOff \lilyvartmpc \sustainOn

Please, help me. How to write the following function correctly?

tst =
#(define-music-function (parser location note)
(ly:music?)
(ly:music-compress note (ly:make-moment 1 2))
#{
$note \sustainOff $note \sustainOn
#})

Thanks!
-- 
Michael Pozhidaev. E-mail: address@hidden
Tomsk State University. http://www.csd.tsu.ru
ALT Linux Team. http://www.altlinux.ru





reply via email to

[Prev in Thread] Current Thread [Next in Thread]