Johan Vromans <[EMAIL PROTECTED]> writes:

> Dan Eble <[EMAIL PROTECTED]> 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



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to