[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using \tempo or multiple events in define-event-function
From: |
David Kastrup |
Subject: |
Re: Using \tempo or multiple events in define-event-function |
Date: |
Fri, 05 Apr 2013 00:28:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Pavel Roskin <address@hidden> writes:
> It turns out I cannot put more than one statement into the function.
> For example, this works:
>
> \version "2.15.36"
> rit = #(define-event-function (parser location) () #{
> ^"rit."
> #})
> { \tempo 4=50 c'4 e'4 \rit g'2 }
>
> And this works:
>
> \version "2.15.36"
> rit = #(define-event-function (parser location) () #{
> \pp
> #})
> { \tempo 4=50 c'4 e'4 \rit g'2 }
>
> But this doesn't work:
>
> \version "2.15.36"
> rit = #(define-event-function (parser location) () #{
> ^"rit." \pp
> #})
> { \tempo 4=50 c'4 e'4 \rit g'2 }
>
> event.ly:3:10: error: syntax error, unexpected EVENT_IDENTIFIER,
> expecting $end ^"rit."
> \pp
> event.ly:5:27: error: error in #{ ... #}
> { \tempo 4=50 c'4 e'4 \rit
> g'2 }
As of version 2.17.15, this works without modification.
--
David Kastrup
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Using \tempo or multiple events in define-event-function,
David Kastrup <=