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

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

Re: Mettre des notes sur la portée clé de sol lorsque l'on est dans la c


From: Bernard Meylan
Subject: Re: Mettre des notes sur la portée clé de sol lorsque l'on est dans la clé de fa
Date: Sat, 6 Mar 2021 13:38:47 -0700 (MST)

Bonsoir, 

voici ton code avec qqs ajouts et qqs passages d'une portée à l'autre
(mesures 3, 4 et 7)

\version "2.20.0"

\header {
  title = "XXXXXXX"
  instrument = \markup \with-color #darkblue "Piano"
  composer = "XXX"
 
  tagline = \markup {
    Gravé avec LilyPond, un logiciel gratuit et libre
    \concat { ( \with-url #"http://lilypond.org"; http://lilypond.org ) }
  }
}

\paper {
  system-system-spacing.padding = #0
  oddFooterMarkup = \markup \fill-line {
    \center-column {
      \line { \fontsize #-4 \fromproperty #'header:title }
      \on-the-fly  #last-page \line { \fontsize #-1 \fromproperty
#'header:tagline }
      \italic \line {
        \fontsize #-1 {
          GR le #(strftime "%d %b %Y" (localtime (current-time)))
        }
      }
    }
  }
}

%% Variables contenant la musique.
global = {
  \key c\major
  \time 9/8
}

melody = \relative c'' {
\global
 \bar ".|:-||"
R1*9/8
R1*9/8  \bar ":|."
r8 e, [ e] e\< [ e e] f4. ~\!
f2.\> ~ f8 [ c' b]\!
e,2. ~ e4.
e2. ~ e4.
r8 e8 [ e]\< e [ e e] f4.~\!
f2. ~ f8\> [ g a]\!
b2. ~ b4.
b2. ~ b4. r8 b [ b] b [ b b] c4.~
c2. c8 [ d e]
b2. ~ b4.
b2. ~ b4.
r8 a [ a] a [ a a] a4. ~
a2. ~ a8 [ g f]
e2. ~ e4. \bar "||"
\time 12/8
r8 a [ g] a [ b a] b4.~ b8 [ a b]
c2. ~ c4. r4 r8
r8 c [ b] c [ b a] b4.~ b8 [ a g]
a2. ~ a2. \bar "||" \time 9/8 \key des\major
r8 f [ f] f [ f f] ges4.~
ges2. ~ ges8 [ des' c]
f,2. ~ f4. ~
f2. ~ f4.
r8 f [ f] f [ f f] ges4. ~
ges2. ~ ges8 [ aes bes]
c2. ~ c4. ~
c2. ~ c4.
r8 c [ c] c [ c c] des4. ~
des2. ~ des4.
c2. ~ c4. ~
c2. r4.
r8 bes [ bes] bes [ bes bes] bes4.
bes2. ~ bes4.
f2. r4. \bar "||" \time 12/8 \key c\major
r8 b [ a] b [ c b] c4. ~ c8 [ b c] \bar "||" \key des\major
des2. ~ des2.
r8 [ des c] des [ c bes] c4. c8 [ bes a]
bes1*12/8
R1*12/8
r4. r4. r8 f8 [ f] f [ f f]
ges2. ~ ges2.
r4. r4. r8 f8 [ f] f [ f f]
ges2. r2.
r4. r4. r8 f8 [ f] f [ f f]
R1*12/8
R1*12/8 \bar "|."



}
text = \lyricmode {
   
}

right = \relative c' {
  \global
  %% des notes au pif :
  <c e>4. <c e>4. <c e>4.
  <c e>4. <c e>4. <c e>4.
  <<
    {4 s8 s2.}
    \\
    {b8 \change Staff = "left" d, c s4. s4.}
  >>
  f'8 c a a' f c s4.
  <<
    {g'4. g4. g4.}
    \\
    {g8 c, a g' c, a g' c, a}
  >>
  <<
    {a'4. a4. a4.}
    \\
    {a8 c, a a' c, a a' c, a}
  >>
  <<
    {4 s8 s2.}
    \\
    {b8 \change Staff = "left" d, c s4. s4.}
  >>
  f'8 c a a' f c s4.
  <<
    {g'4. g4. a4.}
    \\
    {g8 e c g' e c a' e c}
  >>
  <<
    {b'4. g4. e4.}
    \\
    {b'8 g e g e c e b g}
  >>
  <<
    {<c e>4 s8 s4. <f a c>4.}
    \\
    {s4. s4. f8 c a}
  >>
 
 
 
 
}

left = \relative c {
  \global
  \clef bass
  %% des notes au pif :
  <<
    {b'8 a e b' a e b' a e}
    \\
    {a,2. ~  a4.}
  >>
  <<
    {b'8 a e b' a e b' a e}
    \\
    {a,2. ~  a4 e'8}
  >>
  <<
  {\stemDown <a,, a'>4. a'4. 4. ~ 4. s4. s4.}
   \\
   {s4. \stemUp a8 c e f a \change Staff = "right" c s4. s4. \change Staff =
"left" a8 f c}
  >>
  2. ~ 4.~
  2. ~ 4.
  <<
  {\stemDown <a, a'>4. a'4. 4.^> }
   \\
   {r4. \stemUp a8 c e f a \change Staff = "right" c}
  >>
  r4. r4. a8 f c
  2. ~ 4.
  2. ~ 4.
 

 
 
 
 
 
 
 
 
 
}

accords = \chordmode {
  %% des accords au pif :
 
}

%% Réglages de présentation.
\layout {
  \context {
    \Score
    \override BarNumber.color = #red
    \override BarNumber.font-shape = #'italic
    \override BarNumber.font-size = #0.2
  }
  \context {
    \Staff
    explicitKeySignatureVisibility = #end-of-line-invisible
    printKeyCancellation = ##f
  }
  \context {
    \ChordNames
    \frenchChords
    \override ChordName.font-family = #'serif
    \override ChordName.extra-offset = #'(-1 . 0)
  }
}



%% Structure de la partition.
\score {<<
    \new Voice = "mel" { \autoBeamOff \melody}
   \new Lyrics \lyricsto "mel" \text
  \new PianoStaff \with {
    midiInstrument = "piano"
  }
<<

    \new Staff = "right" \right
    \new ChordNames \accords
    \new Staff = "left" \left
  >>
  >>
  \layout {}
 
\midi {\tempo 4=100}
} 



-----
Cordialement

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



reply via email to

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