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: 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





reply via email to

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