lilypond-user
[Top][All Lists]
Advanced

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

Re: How do I mix ly and scheme in define-music-function


From: Kevin Dalley
Subject: Re: How do I mix ly and scheme in define-music-function
Date: Sun, 01 Apr 2007 10:00:20 -0700
User-agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.19 (linux)

Thanks.  That was the part I was missing.  I didn't realize that all
of the items must be combined, and I didn't know how to combine them anyway.

Is this worth mentioning somewhere in the Music Functions section of
the documentation.  Does that mean I have to write it.

Nicolas Sceaux <address@hidden> writes:

> setAltStaff =
> #(define-music-function (parser location ...)
>                       (...)
>    (make-music 'SequentialMusic
>      'elements (list (if ..condition..
>                          #{ ..foo.. #}
>                          ;; if condition is not fulfilled, empty music:
>                          (make-music 'SequentialMusic))
>                      #{ ..baz.. #})))
>




reply via email to

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