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.

The doc say it is due to "parser lookahead" :
http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Input-variables-and-Scheme#Input-variables-and-Scheme

Sorry i don't really understand this parser behaviour but i only know i have to care with it ...

Gilles


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

Reply via email to