[Top][All Lists]
[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: |
22 Aug 2008 16:34:58 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
Johan Vromans <address@hidden> writes:
> Dan Eble <address@hidden> writes:
> aNotes = \relative c' { ... }
>
> %%From template:
> \score {
> #(if (not (defined? bNotes))
> (define bNotes aNotes))
> \bNotes
> }
>
> The intention is clear, but LilyPond/Scheme refuses to compile it.
This seems to work (thanks to a suggestion of Gilles THIBAULT):
aNotes = \relative c' { c1 e g }
#(define dummy #f)
#(if (not (defined? 'bNotes))
(define bNotes aNotes))
\score {
\bNotes
}
When the 'define dummy' is removed, it doesn't work anymore.
-- Johan
- Using one identifier or another, Johan Vromans, 2008/08/16
- Re: Using one identifier or another, Dan Eble, 2008/08/17
- Re: Using one identifier or another, Johan Vromans, 2008/08/18
- Re: Using one identifier or another, Dan Eble, 2008/08/18
- Re: Using one identifier or another, Johan Vromans, 2008/08/19
- Re: Using one identifier or another, Gilles THIBAULT, 2008/08/20
- Re: Using one identifier or another,
Johan Vromans <=
- Re: Using one identifier or another, Gilles THIBAULT, 2008/08/22
- Re: Using one identifier or another, Johan Vromans, 2008/08/22