Pavel Roskin <[email protected]> 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 _______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
