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

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

Re: commande contraire de \Tag ?


From: Jean-Charles
Subject: Re: commande contraire de \Tag ?
Date: Sun, 04 Mar 2007 12:51:42 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20070111)

Le 04.03.2007 12:30, Gilles THIBAULT disait :
Exist-il une commande ou un moyen d'inclure une expression quand le "tag" est different que celui donné en paramètre?


Du genre

   \tag #'violonI { expression1... }
  Dans tous les autres cas {expressions2...}


Pour le moment, je suis obligé de faire un truc du genre
   \tag #'violonI { expression1... }
\tag #'violonII \tag #'alto \tag #'vlc \tag #'ctrebasse \tag #'flute \tag #'hautbois \tag #'clarinette
       etc ...
                { expression2... }

Merci pour vos réponses


Pour plus de simplicité, il est possible et judicieux d'utiliser, pour une même durée dans les différents pupitres, d'utiliser le même nom. Ci-joint un petit exemple d'utilisation dans le cadre de l'Ave maris stella extrait des Vèpres, les premier et septièmes mouvements ne différant que pour les mélismes et l'adjonction de l'Amen final. Seul petit problème non résolu en ce qui me concerne, la longueur de cette dernière mesure.
Puisse cela être un bon exemple.

Jean-Charles
\version "2.10.19"
\include "english.ly"

global = {
  \key c \major
  \override Staff.TimeSignature #'style = #'single-digit
%  \set Staff.autoBeaming = ##f
%  \unset Staff.melismaBusyProperties 
  \override BreathingSign  #'text =
  #(make-musicglyph-markup "scripts.caesura")
  \time 2/1 \skip 1*10 \breathe \skip 1*6 %% 9
  \time 3/1 \skip 1*3  \breathe
  \time 2/1 \skip 1*6
  \time 3/1 \skip 1*3  \breathe
  \time 2/1 \skip 1*4
  \time 3/1 <<
     \tag #'Primo { \skip 1*3 }
     \tag #'Fine { \skip 1*3 \breathe \time 2/1 \skip 1*6 } >>
  \bar"|."
}
sopranoAnotes = \relative c'' {
  d,1( a'
  b2) g2.( a4 b c
  d1) c2( b4 a
  gs2) a b1
  a\breve
  a2.( gs4 a2 d,2~
  d2) e g1~
  g2 f( e d)
  e1 d\breve
  f1. e2
  g1 a
  d,2.( e4 f2 e
  d1) c\breve
  e1 g
  e1. f2
  e1 d\breve 
  <<\tag #'Primo {}
    \tag #'Fine { fs\breve( g) fs }>>
}

altoAnotes = \relative c' {
  fs1. fs2
  g1 d2 g2~
  g2 d2 e1~ 
  e2 e2 e1
  e\breve
  e1 a,
  d2 a d1
  a1 a2 a
  a1 a\breve
  d1. e2
  e1. fs2
  g2( d2. c4 c2~
  c2 b) c\breve
  c2 c d4( b e2~)
  e2 c e( d2~
  d2 cs2) d\breve
  <<\tag #'Primo {}
    \tag #'Fine { d\breve~ d d }>>
}

tenorAnotes = \relative c' {
  a2.( d2) d4 d2
  b1 b1~
  b2 b e a,
  e'4 b c8[( a] e'2 d8[ c] b2)
  cs\breve
  a1 e2 d4.( e8
  f2) e r1
  r4 a2 d,4 a'4.( g8[ f g] a4~
  a4) e a2 a\breve
  a2.( g4 f2) c'
  c1.( b4 a
  b2 a4 g a2) c
  g1 g\breve
  g2 c, g'2. e4
  e2 e2. a2 d,4
  e1 fs2.( g4 a1)
  <<\tag #'Primo {}
    \tag #'Fine { a\breve( g) a }>>
}

bassAnotes = \relative c {
  r1 d1~
  d1 g~
  g1 e1~
  e2 a e1
  a\breve
  r1 a1~
  a1 d,
  a'1. d,2
  a'1 d,\breve
  d2.( e4 f2) g
  c,2.( d4 e2) c
  g'1( c,
  g'1) c,\breve
  e2 a <<\tag #'Primo {d,} \tag #'Fine {d(}>>
     <<\tag #'Primo {e} \tag #'Fine {e)}>>
  <<\tag #'Primo {a,2(} \tag #'Fine {a2}>>
     <<\tag #'Primo {a'1} \tag #'Fine {a1(}>>  d,2
  a'1) d,\breve
  <<\tag #'Primo {}
    \tag #'Fine { d\breve( g) d }>>
}

sopranoBnotes = \relative c'' {
  a1.( d2~
  d2) d b1~
  b1 g2 c(
  b2 a1 gs2)
  a\breve
  c!2.( b4 a g f2~
  f2) g bf1(
  a1.) a2
  a1 fs\breve
  d4( e f! g a b c1~
  c2) g c1(
  b1) a
  g1 g\breve
  c1 b1
  a1. a2
  a1 fs\breve
  <<\tag #'Primo {}
    \tag #'Fine { a\breve( bf) a }>>
}

altoBnotes = \relative c' {
  r1 a2.( d4~
  d2.) d4 d1~
  d1 g,4 g'2 f4
  e2 c b( e)
  cs\breve
  r1 r2 a2~
  a2 c <<\tag #'Primo {d1( cs2)}
    \tag #'Fine { d1 cs2 }>> d e4
  <<\tag #'Primo {a,2 d4~( }
    \tag #'Fine { a2( d4~}>> 
  d4 cs8[ b] cs2) d\breve
  r2 a1 e'2
  g4.( d8 e2) c1
  d2( c4 b c2 a
  d1) e\breve
  c2. a4 b1
  c1 a\breve~
  a1 a\breve
  <<\tag #'Primo {}
    \tag #'Fine { a2( d1 c2 bf2. a4 g2 d') d\breve }>>
}

tenorBnotes = \relative c {
  d2( a'1) fs2
  d1 d2 d2~
  d2 g1 e2~
  e2 e2 e1
  e\breve
  <<\tag #'Primo {e1.( f2 a1)}
    \tag #'Fine { e1. f2 a1 }>> g1
  e2( d cs) f
  e1 fs2.( g a1)
  <<\tag #'Primo {f2.( e4 d2)}
    \tag #'Fine { f2. e4 d2 }>> g
  e1 a
  r1 a2 a
  d,4 d g2 e\breve
  e1 b'4.( a8 g2)
  c4.( b8 a1) a2
  a1 a\breve
  <<\tag #'Primo {}
    \tag #'Fine { a4( g fs e d2 d'2~d4 c bf2. a4 g d) d\breve }>>
}

bassBnotes = \relative c {
  d\breve 
  g,1 g2.( a4
  b1 c2. d4
  e2) a, e'1
  a,\breve
  a2.( b4 cs2 d2~
  d2) c! bf g
  a1.( d2
  a1) d\breve
  d1. c2
  c2.( b4 a1)
  g1 f(
  g) c\breve
  c4.( b8 a2 g4. f8 ) e2
  a2.( b4 cs a) d2
  a1 d\breve
 <<\tag #'Primo {}
    \tag #'Fine { d\breve( g,) e' }>>
}

%%-------------------------
%% traitement 1er mouvement
%%-------------------------
\score{ <<
  \context ChoirStaff = ChoroA <<
    \context Staff = soprano <<
      \context Voice = sopA {\keepWithTag #'Fine << \global \sopranoAnotes >> }
    >>
    \context Staff = alto <<
      \context Voice = altA {\keepWithTag #'Fine <<\global \altoAnotes >> }
    >>
    \context Staff = tenor <<
      \clef "G_8"
      \context Voice = tenA {\keepWithTag #'Fine  << \global \tenorAnotes >> }
    >>
    \context Staff = bass <<
      \clef bass
      \context Voice = basA { \keepWithTag #'Fine << \global \bassAnotes >> }
    >>
  >>

  \context ChoirStaff = ChoroB <<
    \context Staff = soprano <<
      \context Voice = sopB {\keepWithTag #'Fine << \global \sopranoBnotes >> }
    >>
    \context Staff = alto <<
      \context Voice = altB {\keepWithTag #'Fine << \global \altoBnotes >> }
    >>
    \context Staff = tenor <<
      \clef "G_8"
      \context Voice = tenB {\keepWithTag #'Fine << \global \tenorBnotes >> }
    >>
    \context Staff = bass <<
      \clef bass
      \context Voice = basB {\keepWithTag #'Fine << \global \bassBnotes >> }
    >>
  >>
>>
}

%%-------------------------
%% traitement 7me mouvement
%%-------------------------
\score{ <<
  \context ChoirStaff = ChoroA <<
    \context Staff = soprano <<
      \context Voice = sopA {\keepWithTag #'Fine << \global \sopranoAnotes >> }
%      \lyricsto "sopA" \new Lyrics \sopranoAwords
    >>
    \context Staff = alto <<
      \context Voice = altA {\keepWithTag #'Fine <<\global \altoAnotes >> }
%      \lyricsto "altA" \new Lyrics \altoAwords
    >>
    \context Staff = tenor <<
      \clef "G_8"
      \context Voice = tenA {\keepWithTag #'Fine  << \global \tenorAnotes >> }
%      \lyricsto "tenA" \new Lyrics \tenorAwords
    >>
    \context Staff = bass <<
      \clef bass
      \context Voice = basA { \keepWithTag #'Fine << \global \bassAnotes >> }
%      \lyricsto "basA" \new Lyrics \bassAwords
    >>
  >>

  \context ChoirStaff = ChoroB <<
    \context Staff = soprano <<
      \context Voice = sopB {\keepWithTag #'Fine << \global \sopranoBnotes >> }
%      \lyricsto "sopB" \new Lyrics \sopranoBwords
    >>
    \context Staff = alto <<
      \context Voice = altB {\keepWithTag #'Fine << \global \altoBnotes >> }
%      \lyricsto "altB" \new Lyrics \altoBwords
    >>
    \context Staff = tenor <<
      \clef "G_8"
      \context Voice = tenB {\keepWithTag #'Fine << \global \tenorBnotes >> }
%      \lyricsto "tenB" \new Lyrics \tenorBwords
    >>
    \context Staff = bass <<
      \clef bass
      \context Voice = basB {\keepWithTag #'Fine << \global \bassBnotes >> }
%      \lyricsto "basB" \new Lyrics \bassBwords
    >>
  >>
>>
}

reply via email to

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