|
From: | Lukas-Fabian Moser |
Subject: | Re: Can't use addArticulation function |
Date: | Fri, 28 May 2021 22:55:32 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
Hi Dmitry,
This works. But as soon as I uncomment "music" definition, it starts to give an error: ./test.ly:23:50: error: unrecognized string, not in text script or \lyricmode music = \addArticulation #'("staccato") { | c4 d e f | } /usr/local/lilypond/usr/share/lilypond/current/scm/ly-syntax-constructors.scm:56:23: In expression (apply (ly:music-function-extract fun) parser ...): /usr/local/lilypond/usr/share/lilypond/current/scm/ly-syntax-constructors.scm:56:23: Wrong number of arguments to #<procedure #f (scripts music)>
Now that's a good moment to switch from 2.18.2 to a more recent version of LilyPond :-).
David Nalesnik's code you copied used syntax simplifications from the next LilyPond generation. It works with 2.18.2 if you replace
#(define-music-function (scripts music) (list? ly:music?) by #(define-music-function (parser location scripts music) (list? ly:music?) Lukas
[Prev in Thread] | Current Thread | [Next in Thread] |