lilypond-user
[Top][All Lists]
Advanced

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

Re: Dot-separated list as music function argument


From: Janek Warchoł
Subject: Re: Dot-separated list as music function argument
Date: Tue, 8 Jul 2014 15:48:17 +0200

2014-07-08 13:39 GMT+02:00 Simon Albrecht <address@hidden>:
> The 2.18 changes document says that #'(Staff Accidental) and
> Staff.Accidental were now interchangeable, however if I replace it in the
> second function call, I get errors (unexpected "." etc.). Is there a way to
> avoid this in the coding of the function or should it be considered a bug?


I think that symbol-list-or-symbol? is what you need:

\version "2.19.8"

ed = #(define-music-function (parser location grob mus)
        (symbol-list-or-symbol? ly:music?)
        #{ \override $grob . color = #(x11-color 'grey40)
           $mus
           \revert $grob . color #})


\relative { \ed NoteHead c' \ed Staff.Accidental { cis dis } es }

best,
Janek



reply via email to

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