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

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

Re: erreur de compilation, partition rythmique Guitare


From: Gerard
Subject: Re: erreur de compilation, partition rythmique Guitare
Date: Tue, 22 Aug 2023 07:59:03 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0

Bonjour Jean-Loups,

j'ai juste rajouté un } à la fin de "maMusiqueVoixUn" et un autre à "mesAccords"

ça tourne chez moi !

Cordialement

G.



Le 22/08/2023 à 03:41, Jean-Loups a écrit :
salut,
j'essaie de remettre au propre les exo rythmique de mon prof de gratte
mais ça bug...
---

jean-loups@Coding-Station:~/Organisation/Musiques$ lilypond exo-
rythmique.ly
GNU LilyPond 2.22.1
Traitement de « exo-rythmique.ly »
Analyse...
exo-rythmique.ly:69:1: Erreur : « mesAccords » n'est pas un nom de note

mesAccords = \chordmode {
exo-rythmique.ly:69:12: Erreur : syntax error, unexpected '='
mesAccords
            = \chordmode {
exo-rythmique.ly:116:1: Erreur : syntax error, unexpected \header

\header {
exo-rythmique.ly:117:3: Erreur : « title » n'est pas un nom de note
title = "Exercice rythmique"
exo-rythmique.ly:117:30: Erreur : chaîne en dehors d'un script textuel
ou de \lyricmode
   title = "Exercice rythmique
                              "
exo-rythmique.ly:119:3: Erreur : « composer » n'est pas un nom de note
composer = "Jean-Loups"
exo-rythmique.ly:119:25: Erreur : chaîne en dehors d'un script textuel
ou de \lyricmode
   composer = "Jean-Loups
                         "
exo-rythmique.ly:174:1: Erreur : « markup » en dehors d'un script
textuel ou de \lyricmode

\markup\italic "portée rythmique avec accords :"
exo-rythmique.ly:175:1: Erreur : syntax error, unexpected \score

\score {
exo-rythmique.ly:177:21: Erreur : chaîne d'échappement inconnue :
« \mesAccords »
     \new ChordNames
                     \mesAccords
exo-rythmique.ly:177:21: Erreur : syntax error, unexpected STRING
     \new ChordNames
                     \mesAccords
exo-rythmique.ly:177:21: Erreur : chaîne en dehors d'un script textuel
ou de \lyricmode
     \new ChordNames
                     \mesAccords
exo-rythmique.ly:180:44: Erreur : chaîne d'échappement inconnue :
« \maMusiqueVoixUn »
       \new Voice { \improvisationOn \global
                                            \maMusiqueVoixUn }
exo-rythmique.ly:180:44: Erreur : chaîne en dehors d'un script textuel
ou de \lyricmode
       \new Voice { \improvisationOn \global
                                            \maMusiqueVoixUn }
exo-rythmique.ly:183:3: Erreur : syntax error, unexpected \layout
\layout {
exo-rythmique.ly:185:7: Erreur : chaîne d'échappement inconnue :
« \Voice »
\Voice
exo-rythmique.ly:185:7: Erreur : chaîne en dehors d'un script textuel
ou de \lyricmode
\Voice
exo-rythmique.ly:186:17: Erreur : « Pitch_squash_engraver » n'est pas
un nom de note
       \consists
                 Pitch_squash_engraver
exo-rythmique.ly:188:14: Erreur : syntax error, unexpected '{',
expecting SCM_IDENTIFIER or SCM_TOKEN or STRING or SYMBOL
     \context
              {
exo-rythmique.ly:189:7: Erreur : chaîne d'échappement inconnue :
« \Staff »
\Staff
exo-rythmique.ly:189:7: Erreur : chaîne en dehors d'un script textuel
ou de \lyricmode
\Staff
exo-rythmique.ly:190:7: Erreur : « instrumentName » n'est pas un nom de
note
instrumentName = "Guitare"
exo-rythmique.ly:190:22: Erreur : syntax error, unexpected '='
       instrumentName
                      = "Guitare"
exo-rythmique.ly:190:32: Erreur : chaîne en dehors d'un script textuel
ou de \lyricmode
       instrumentName = "Guitare
                                "
exo-rythmique.ly:193:2: Erreur : Fichier principal non fini
}
exo-rythmique.ly:193:2: Erreur : syntax error, unexpected end of input
}
erreur fatale : erreur sur les fichiers "exo-rythmique.ly"
jean-loups@Coding-Station:~/Organisation/Musiques$

---

\version "2.22.1"

up = \upbow
do = \downbow

%{
Antisèche (uniquement pour ceux qui connaissent mal leur manche) :
     0    1    2    3    4    etc.
1   e'   f'  fis'  g'  gis'
2   b    c'  cis'  d'  dis'
3   g   gis   a   ais   b
4   d   dis   e    f   fis
5   a,  ais,  b,   c   cis
6   e,   f,  fis,  g,  gis,
%}

global = {
   \time 4/4
   % option :
   \numericTimeSignature
   \key c\major %% <= à préciser pour d'éventuelles transpositions
futures
   \tempo "70"
%  \mark\markup\small "Capo. VI"
%  \partial 2. %% <= anacrouse
}

maMusiqueVoixUn =
   {
     \repeat volta 4
     {
       \repeat volta 2
       {
          % mes.0
         |  c4 c c c
         |  c4 c c c
         |  c8 c c c
         |  c4 c c c
          % mes.1
         |  c4 c c c
         |  c4 c c c
         |  c4 c c c
         |  c4 c c c
          % mes.2
%{        |  r8 c\up c\do c\up (c4.)^"x2"
       }
      % mes.0
     |  c8 c c c c c4
     |  c8 c c c c c4
     |  c8 c c c c c4
     |  c8 c c c c c4
      % mes.1
     |  c8 c c c c c4
     |  c8 c c c c c4
     |  c8 c c c c c4
     |  c8 c c c c c4
      % mes.2
     |  c2.\bar "|."%}
   }
}

%maMusiqueVoixDeux = {
%  % mes.0
%    c4 c c c
%  | % mes.1
%    c c c c
%    % etc.
%}

mesAccords = \chordmode {
     % mes.0
      e2..:m
     % mes.1
      c:7
     % mes.2
      a:m9
     % mes.3
      g:6
     % mes.4
      e2..:m
     % mes.5
      c:7
     % mes.6
      a:m9
     % mes.7
      g:6
     % mes.8
      g:6
%{    % partie deux
     % mes.0
      e2..:m
     % mes.1
      c:7
     % mes.2
      a:m9
     % mes.3
      g:6
     % mes.4
      e2..:m
     % mes.5
      c:7
     % mes.6
      a:m9
     % mes.7
      g:6
     % mes.8
      g:6
     % etc.
   }%}

%%% Partition :

%{\paper {
   ragged-right = ##f
}%}

\header {
   title = "Exercice rythmique"
%  subtitle = "Rythme en 4/4"
   composer = "Jean-Loups"
}
%
%%\markup\italic "Tablature avec accords :"
%\score {
%  <<
%    \new ChordNames \mesAccords
%    \new TabStaff <<
%      \global
%      \clef "moderntab"
%      \tabFullNotation
%      << \maMusiqueVoixUn \\ \maMusiqueVoixDeux >>
%    >>
%  >>
%  \layout {
%    \context {
%      \TabStaff
%      instrumentName = "Guitare"
%    }
%  }
%}
%
%\markup\italic "portée standard :"
%\score {
%  \new Staff <<
%    \clef "G_8"
%    \new Voice { \global \voiceOne \maMusiqueVoixUn }
%    \new Voice { \global \voiceTwo \maMusiqueVoixDeux }
%  >>
%  \layout {
%    \context {
%      \Staff
%      instrumentName = "Guitare"
%    }
%  }
%}
%
%\markup\italic "portée standard avec accords :"
%\score {
%  <<
%    \new ChordNames \mesAccords
%    \new Staff <<
%      \clef "G_8"
%      \new Voice { \global \voiceOne \maMusiqueVoixUn }
%      \new Voice { \global \voiceTwo \maMusiqueVoixDeux }
%    >>
%  >>
%  \layout {
%    \context {
%      \Staff
%      instrumentName = "Guitare"
%    }
%  }
%}

\markup\italic "portée rythmique avec accords :"
\score {
   <<
     \new ChordNames \mesAccords
     \new Staff <<
       \clef "G_8"
       \new Voice { \improvisationOn \global\maMusiqueVoixUn }
     >>
   >>
   \layout {
     \context {
       \Voice
       \consists Pitch_squash_engraver
     }
     \context {
       \Staff
       instrumentName = "Guitare"
     }
   }
}

Attachment: gratte.ly
Description: Text Data

Attachment: gratte2.png
Description: PNG image


reply via email to

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