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

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

macro pour un motif musical à répéter


From: eric
Subject: macro pour un motif musical à répéter
Date: Mon, 4 Feb 2019 15:15:02 -0700 (MST)

Bonjour, 
Je voudrais faire une macro pour faciliter l'édition d'une partition comme
celle-ci :

<http://lilypond-french-users.1298960.n2.nabble.com/file/t395723/document.jpg> 

je sais faire ceci 

\version "2.18.2"
 \new PianoStaff 
   \new Staff=up
   {\relative c \clef treble
    {s1
    }
   }
   \new Staff=down
   { \clef bass \relative c
    {
      c16 \change Staff=up c' \change Staff=down 
      d, \change Staff=up d' \change Staff=down 
      e, \change Staff=up e'  \change Staff=down
      d, \change Staff=up d'  \change Staff=down
      c, \change Staff=up c' \change Staff=down 
      e, \change Staff=up e' \change Staff=down 
      a, \change Staff=up a'  \change Staff=down
      c,, \change Staff=up c'  \change Staff=down
    }
   }
 >>

mais je voudrais écrire une macro pour pouvoir faire cela 

\version "2.18.2"
 \new PianoStaff 
   \new Staff=up
   {\relative c \clef treble
    {s1
    }
   }
   \new Staff=down
   { \clef bass \relative c
    {
      \toto{c16 d e d c e a c,}
    }
   }
 >>

Les changements de portée se font facilement, mais je ne sais pas faire les
sauts d'octave. J'ai essayé avec \transpose, mais c'est incompatible avec
\relative.
Je ne sais pas non plus gérer un argument de longueur variable. 
Qui peut m'aider (je suis assez novice ...)




--
Sent from: http://lilypond-french-users.1298960.n2.nabble.com/



reply via email to

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