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: David Kastrup
Subject: Re: Dot-separated list as music function argument
Date: Tue, 08 Jul 2014 18:45:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> use the predicate symbol-list-or-symbol?
> Below a working version, displaying some info as well:
>
> \version "2.19.8"
>
> ed =
> #(define-music-function (parser location grob mus)
>   (symbol-list-or-symbol? ly:music?)
> ;; displaying some info:
>     (format #t "\nI'm the list: \t\t\t~a
> My first entry is:          \t~a
> My next entry is:           \t~a
> My first entry is a symbol? \t~a
> My next entry is a symbol?  \t~a"
>                grob
>                (car grob)

Uh, you should _not_ be using symbol-list-or-symbol? if your code is not
prepared to accept a single symbol.  In that case, use just symbol-list?
as predicate.

-- 
David Kastrup



reply via email to

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