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

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

Re: Accords, armure et altérations


From: Eluze
Subject: Re: Accords, armure et altérations
Date: Wed, 18 Dec 2013 14:56:31 -0800 (PST)

Phil wrote
> Le 18/12/2013 14:43, Eluze a écrit :
>>
>>
>> essayons:
>>
>> \language nederlands
>>
>> myDef =
>> #(define-music-function (parser location music) (ly:music?) #{
>>    \key g \major \grace s16 \nokeycan \key c \major $music
>> #})
>>
>> nokeycan=\once{
>>    \set printKeyCancellation = ##t
>>    \set Staff.explicitKeySignatureVisibility = #all-invisible
>>    \override Staff.KeyCancellation #'break-visibility = #all-invisible
>> }
>>
>>
>> Eluze
>>    
> 
> Ça a l'air de fonctionner ! Je n'ai donc plus qu'à modifier la référence 
> à la clé de sol pour les autres
> gammes, peut-être en renommant chaque fonction en :
> 
> Delete_nom_de_l-armmure =
> #(define-music-function (parser location music) (ly:music?) #{
>    \key<cle correspondant à l'armure à éliminer>  \grace s16
> \nokeycan \key c \major $music
> #})
> 
> J'essaie et je fais des retours.

on peut passer 2 arguments à la fonction:

myDef=#(
  define-music-function (parser location key music) (ly:music? ly:music?) #{
    $key 
    \grace s16 \nokeycan \key c \major $music
#})

mais je ne vois pas trop à quoi ça sert - on obtient toujours le même
résultat, non!?

\myDef {\key c \major} \sol
\myDef {\key d \major} \sol

Eluze



--
View this message in context: 
http://lilypond-french-users.1298960.n2.nabble.com/Accords-armure-et-alterations-tp7580702p7580722.html
Sent from the LilyPond French Users mailing list archive at Nabble.com.



reply via email to

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