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

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

Re: Re: Affichage conditionnel (if / else)


From: christophe
Subject: Re: Re: Affichage conditionnel (if / else)
Date: Fri, 26 Mar 2010 16:49:42 +0100
User-agent: Thunderbird 2.0.0.24 (Windows/20100228)

Génial ca marche

merci a toi

Christophe

Gilles THIBAULT a écrit :
>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]