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: Gilles THIBAULT
Subject: Re: Using one identifier or another
Date: Thu, 21 Aug 2008 01:02:35 +0200


Meanwhile, I'm still struggling with the easy task of using one
identifier for another:

 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.


That seems to work.

%%%%%%%%%%%%%%%%
aNotes = { a }
%% bNotes = { b }

#(define dummy #f)            %% has to be ...
#(define bNotes  (if (not (defined? 'bNotes)) aNotes ))


\score { \bNotes
 }
%%%%%%%%%%%%%%%%%

Gilles




reply via email to

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