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

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

Affichage conditionnel (if / else)


From: address@hidden
Subject: Affichage conditionnel (if / else)
Date: Wed, 24 Mar 2010 11:28:38 +0100 (CET)

Bonjour

j'ai repris le post suivant:
http://n2.nabble.com/Affichage-conditionnel-if-else-td3691791.html

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 {""})
                          
mais je pense que je ne m'y prend mal :

# -*-compilation-*-
Processing `C:/Documents and Settings/cgodefro/Desktop/work/christophe/sérénade.ly'
Parsing...
warning: no such internal option: concert
C:/Documents and Settings/cgodefro/Desktop/work/christophe/mvt1.ly:3:7: error: GUILE signaled an error for the _expression_ beginning here
LAm = #
       (if (eqv? (ly:get-option 'concert) #t)

C:/Documents and Settings/cgodefro/Desktop/work/christophe/mvt1.ly:29:27: error: syntax error, unexpected SCM_IDENTIFIER
            si^
                           \LAm mi, do16 si re do mi re fa mi

C:/Documents and Settings/cgodefro/Desktop/work/christophe/mvt1.ly:57:27: error: syntax error, unexpected SCM_IDENTIFIER
            si^
                           \LAm mi, do16 si re do mi re fa mi

C:/Documents and Settings/cgodefro/Desktop/work/christophe/sérénade.ly:41:8: error: errors found, ignoring music _expression_
     
        <<

error: failed files: "C:\\Documents and Settings\\cgodefro\\Desktop\\work\\christophe\\sérénade.ly"

Est-ce que vous pouvez m'aider ou me rediriger vers une documentation adéquate ?

Merci pour votre aide

christophe












Christophe GODEFROY



Pieddemail
reply via email to

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