%% Un bout de chemin %% lancer par : lilypond %% Version de Lilypond utilisée \version "2.11.28-1" %% Mise en page (pour sortie .ps et .pdf) #(set-default-paper-size "a4") %% En-tête \header { title = "A Fanny" poet = "Paroles de Jean-Paul Rivron, 2002" composer = "Musique de Maurice Clerc, 2007" } %% Bloc "texte (à écrire sous la mélodie)" %% Pour une bonne représentation, compter une "syllabe" par note %% Le texte est fragmenté, de façon à pouvoir écrire plusieurs lignes sous la mélodie textUn= \lyricmode { Fan- ny par ci Fan- ny par là Les choux far- cis Au cho- co- lat Fan- ny l’a- beille Fan- ny vi- son Tu en- so- leilles } textUnA = \lyricmode { No- tre mai- son } textDeux= \lyricmode { Fan- ny par ci Fan- ny par là Les choux far- cis Au cho- co- lat Fan- ny star- lette Fan- ny bi- joux Pour les em- plettes } textDeuxA= \lyricmode { Y’ manque les sous ! } textTrois=\lyricmode { Fan- ny par ci Fan- ny par là Les choux far- cis Au cho- co- lat Fan- ny ma fille Fan- ny ma belle Tes yeux pé- tillent… Et c’est No- ël ! Fan- ny ma fille Fan- ny ma belle Tes yeux pé- tillent… Et c’est No- ël ! } %% Blocs "première ligne musicale" (ici la mélodie) %% Notation anglo-saxonne (a = La, b = Si, ...) %% ais = La# melodieA= \relative { \tempo 4=80 \time 4/4 \clef treble \key c \major r1 d8 f8. f16 f8 d8 f8. g16 a8 d,8 f8. f16 f8 d8 f8. g16 a8 } melodieB = \relative { a'8 ais8. g16 g8 ais8 a8. g16 f8 a8 g8. f16 e8 } codaUn = \relative { d8 e8. f16 g8 ~ g2 r2 } codaDeux = \relative { d8 e8. c16 d8 ~ d2 r2 } %% Blocs "accompagnement" harmonieA = { % F = c a c' f' et f, a c' f' (Fa majeur) % Solm = g ais d g' et d ais d g' % Do = c g c' e et g, g c' e % Sol = d b d' g et g, b d' g c8 a8 c'8 f'8 % F f,8 a8 c'8 f'8 % F c8 a8 c'8 f'8 % F f,8 a8 c'8 f'8 % F c8 a8 c'8 f'8 % F f,8 a8 c'8 f'8 % F } harmonieB = { g8 ais8 d'8 g'8 % Solm f8 a8 c'8 f'8 % F c8 g8 c'8 e'8 % Do } harmonieCodaUn= { d8 b8 d'8 g'8 % Sol g8 b8 d'8 g'8 % Sol d8 b8 d'8 g'8 % Sol } harmonieCodaDeux= { d8 b8 d'8 g'8 % Sol g8 b8 d'8 g'8 % Sol d8 b8 d'8 g'8 % Sol } %% Blocs d'accords %% Ici (en "chordmode") chaque accord est simplement représenté par sa racine accordsA= \chordmode { f1 f1 f1 } accordsB= \chordmode { g2:m f2 c2 } accordsCodaUn=\chordmode { g2 g1 } accordsCodaDeux= \chordmode { g2 g1 } accordsCodaTrois=\chordmode { g2 g2 } %% Construction du morceau \score { << % Les éléments entre les délimiteurs << et >> sont à jouer simultanément << %% Première ligne musicale (mélodie) \new Staff { % Affectation du bloc "mélodie" \new Voice = "un" { \repeat volta 2 { \melodieA \melodieB } % Répétion en écriture "classique" (volta) \alternative { \codaUn \codaDeux } % Les deux fins \transpose c cis { \melodieA \melodieB \codaUn \melodieB \codaDeux } } } %% Affectation du texte sous la portée \new Lyrics="A" \lyricsto "un" { \textUn \textUnA - - - - \textTrois} \new Lyrics="B" \lyricsto "un" { \textDeux - - - - \textDeuxA } >> %% Accompagnement (seconde ligne musicale) \new Staff { \new Voice = "deux" { \repeat volta 2 { \harmonieA \harmonieB } \alternative { \harmonieCodaUn \harmonieCodaDeux } \break \transpose c cis { \harmonieA \harmonieB \harmonieCodaUn \harmonieB d8 b8 d'8 g'8 g8 b8 d'8 g'8 } } } >> % Sorties .ps et .pdf) \layout { topmargin = 1\cm bottommargin = 2\cm } } %% On fait un assemblage à part pour la sortie audio (MIDI) %% D'un côté cela impose de répéter des éléments musicaux %% de l'autre cela permet d'en ajouter qui ne sont pas visibles %% sur la partition (troisième "voix") \score { << \new Staff { % Choix de l'instrument % par exemple : % oboe, flute, cello, pan flute, church organ, accordion % clarinet, ocarina, alto_sax % violin_sordino (si installé) \set Staff.midiInstrument = "oboe" % Affectation du bloc "mélodie" \new Voice = "un" { \melodieA \melodieB \codaUn \melodieA \melodieB \codaDeux \transpose c cis { \melodieA \melodieB \codaUn \melodieB \codaDeux } } } %% Accompagnement (seconde ligne musicale) \new Staff { \set Staff.midiInstrument = "acoustic guitar (nylon)" \new Voice = "deux" { \harmonieA \harmonieB \harmonieCodaUn \harmonieA \harmonieB \harmonieCodaDeux \transpose c cis { \harmonieA \harmonieB \harmonieCodaUn \harmonieB d8 b8 d'8 g'8 g8 b8 d'8 g'8 } } } \new Staff { \set Staff.midiInstrument = "violin" \new Voice = "trois" { \accordsA \accordsB \accordsCodaUn \accordsA \accordsB \accordsCodaDeux \transpose c cis { \accordsA \accordsB \accordsCodaUn \accordsB \accordsCodaTrois } } } >> % Sortie audio .midi \midi { % ici, paramètres éventuels } } \markup { }