Le 27/06/2022 à 13:26, mark damerell a écrit :
It came from:
%% http://lsr.di.unimi.it/LSR/Item?id=328
Here is part of it:
% First version, with a single argument, i.e. the
% syntax is \triplet{ c d e }
triplet = #(define-music-function (music) (ly:music?)
#{ \tuplet 3/2 $music #})
\score{
\relative c'{
c4 \triplet {c d e}
}
}
This produces:
GNU LilyPond 2.18.2
Processing `/home/rmd/Music/holycity/trips.ly <http://trips.ly>'
Parsing.../usr/share/lilypond/2.18.2/scm/ly-syntax-constructors.scm:56:23:
In expression (apply (ly:music-function-extract fun) parser ...):
/usr/share/lilypond/2.18.2/scm/ly-syntax-constructors.scm:56:23: Wrong
number of arguments to #<procedure #f (music)>
Compilation exited abnormally with code 1 at Mon Jun 27 12:18:38
Please any advice? thank you.
The LSR runs LilyPond 2.22 and you have 2.18. You need to upgrade
LilyPond. Frescobaldi makes it easy to use several versions in parallel.
Alternatively, replace "music" with the legacy syntax "parser location
music".
Jean