lilypond-user
[Top][All Lists]
Advanced

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

Re: Using one identifier or another


From: Johan Vromans
Subject: Re: Using one identifier or another
Date: 18 Aug 2008 10:46:15 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Dan Eble <address@hidden> writes:

> These two functions should help.

Thanks! I can use this.

> You will either need to define your optional music to be empty when
> it is not required, as in this example, or provide a function to
> create empty music if it is not already defined.

I would be very interested in the latter.

> (It's hard to tell from your example what your needs are.)

Sometimes, it could be as easy as:

  \aNotes = { ... }

  %%From template:
  \score {
     #(if (not (defined? bNotes))
          (define bNotes aNotes))
     \bNotes
  }

except that I cannot get this to work...

I'm afraid my lisp skills get in the way of lilyscheme :)

-- Johan




reply via email to

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