lilypond-user
[Top][All Lists]
Advanced

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

Re: Problem with a snippet "shorthand for triplets [0.21429]"


From: Jean Abou Samra
Subject: Re: Problem with a snippet "shorthand for triplets [0.21429]"
Date: Mon, 27 Jun 2022 15:18:02 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0



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




reply via email to

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