lilypond-user-fr
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Affichage conditionnel (if / else)


From: Gilles THIBAULT
Subject: Re: Affichage conditionnel (if / else)
Date: Wed, 24 Mar 2010 18:29:06 +0100


>j'ai un besoin similaire. Je voudrais pouvoir positionner differentes valeurs a une variable comme ci dessous:
>LAm = #(if (eqv? (ly:get-option 'concert) #t)
 >                          '\markup {\tiny "La m"}
>                           '\markup {""}) 
                          
Ceci semble marcher :
 
%%%%%%%%%%%%%%%%%
\include "italiano.ly"

#(define variable 'concert)   % à metter en commentaire
%%#(define variable 'autre)   % à décommenter
 
LaMConcert = \markup {\tiny "La m"}
LaMAutre = \markup {""}

LAm = #(if (eq? variable 'concert) LaMConcert LaMAutre)
 
\new Staff  \relative  { si'^\LAm mi, do16 si re do mi re fa mi}
 
%%%%%%%%%%%%%%%%%%
 
Gilles

reply via email to

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