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

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

PB nom des insruments


From: Christian LE BARS
Subject: PB nom des insruments
Date: Mon, 20 Apr 2020 16:18:56 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

Bonjour a tous.

J'aimerais ecrire le nom des instruments en début de portée.

je me sers d' instrumentName mais Lily s'en fout!

ci--dessous un extrait de ma partition:


\version "2.19.82"
#(set-global-staff-size 18) %taille des portées
%---------------------------------------------
\header
{
 title = \markup { \override #'(font-name . "lilyjazz-text")\fontsize #1 \bold\italic"Jambe cassée"  }
 composer =\markup { \override #'(font-name ."lilyjazz-text" )\italic  "Ch. le Bars" } 
 poet =\markup { \override #'(font-name ."lilyjazz-text" )\italic "C h. le Bars"   } 
}
%----------------------------------------
\paper
 {
  oddFooterMarkup = \markup {\override #'(font-name . "LilyJAZZText")\fontsize #3 \fill-line { \fromproperty #'header:title  } }
  print-page-number = ##t
  #(define fonts
     (set-global-fonts
      #:music "lilyjazz"
      #:brace "lilyjazz"
      #:roman "lilyjazz-text"
      #:sans "lilyjazz-chord"
      #:factor (/ staff-height pt 20)
      ))
 }
%-----------------------------------------------
Global=
{
 \numericTimeSignature  
 \time 4/4
 \key c \major
}
%----------------------------------------------
LesAccords =
\chords
{
 \override ChordNames.ChordName.font-name = "lilyjazz-chord"
 \override ChordNames . ChordName #'font-size = #1
 \set chordChanges = ##t
 \set Score.majorSevenSymbol = \markup {Maj7}
 \set chordNameSeparator = \markup { "/" }
 \set minorChordModifier = \markup{"-"}
 c1 a:m d:m g c
}
%--------------------------------------------------
CoupletA =
\lyricmode
 {
  \override LyricText #'font-size = #1
  \override LyricText #'font-name = #"lilyjazz-text"
  il c'est une jambe
  }
%----------------------------------------------------
LaVoix =
\relative c''
 {%debut melodie
  \clef treble
  \Global 
  s1 s s s
  g4 g8 g g2
 }
%------------------------------------------------
LeChant =
  << %mise en parallèle la voix et les paroles
    \new Staff
    \with { instrumentName =\markup{\override #'(font-name ."lilyjazz-text")"Voix"}} 
    \context Voice = voix
    \LaVoix
   \context Lyrics = coupletA\lyricsto voix  \CoupletA
 >>
%-----------------------------------------------
LaBasse =
\new Staff
 \with
  { instrumentName =\markup{\override #'(font-name ."lilyjazz-text") "Basse"}}  
\relative c
{
 \Global
 \clef "bass"
  s1 s s s
  c4 d8 e c2
}
%------------------------------------------------
Droite =
\relative c'
{
 \Global
 s1 s s s
 < e g>1
}
%------------------------------------------
Gauche =
\relative c
{
 \Global
 \clef"bass"
 s1 s s s
 <c c'>1
}
%----------------------------------------------
LaMainDroite =
\relative c'
 {
  \Global
  s1 s s s
  c4 e g a
 }
%----------------------------------------------
LaMainGauche =
\relative c
 {
  \Global
  \clef"bass"
  s1 s s s
  <<
    {<c c'>1}
  \\
    { s2 g' }
  >>
 }
%---------------------------------------
LaGuitareRythme =
\new Voice
  \with
  {\consists "Pitch squash engraver"}
  \with
     {instrumentName =\markup{\override #'(font-name ."lilyjazz-text") "Guit. Ryt"}}
 \relative c'
  {
   \Global
   s1 s s s
   \improvisationOn 
    s4 a' s a
  }
%------------------------------------------
LaGuitareSolo =
\new Staff
\with
  {instrumentName =\markup{\override #'(font-name ."lilyjazz-text") "Piano"}}
\relative c'
{
 \Global
 s1 s s s
 c4 d8 d a'2
}
%-----------------------------------------
Tablature =
{
 c4-"4"e-"5"a ^"6"g-"6" a4^"6" e-"5" c-"4" e-"5" d4^"4"
 f^"5" g-"6"a^"6" g4-"6" a^"6" b^"7" g-"6"\break
}
%----------------------------------
Harmo =
{
 \new DrumStaff
  \with
   {instrumentName =\markup{\override #'(font-name ."lilyjazz-text") "Harmo"}
    \override StaffSymbol #'line-count = #1                 % Une seule ligne de tablature
    \remove "Time_signature_engraver"                       % Suppression de la métrique
    \override Clef #'stencil = #ly:text-interface::print    % Surcharge de la clé de tablature
    \override NoteHead #'stencil = #point-stencil
    \override KeySignature #'stencil = ##f
    \override Tie #'stencil = ##f
    \override Stem #'stencil = ##f
    \override Flag #'stencil = ##f
    \override Beam #'stencil = #point-stencil
    \override Dots #'stencil = ##f
    \override TupletBracket #'stencil = ##f
    \override TupletNumber #'stencil = ##f
    \override BreathingSign #'stencil = ##f
    \override KeyChangeEvent #'stencil = #point-stencil
    \override StringNumber #'stencil = #point-stencil
    \override StrokeFinger #'stencil = ##f
    \override StaffSymbol #'staff-space = #1
   }      
 \Tablature
}
%---------------------------------------------------
mainDroite =
\drummode
{hh8 hh hh hh hh hh hh hh }
%----------------------------------------------
mainGauche =
\drummode
{s4 sn2 sn4}
%---------------------------------
piedDroit =
\drummode
{bd4. bd8 bd2}
%-------------------------------
piedGauche =
\drummode
{}
%---------------------------------
LaBatterie =
\new DrumStaff
 \with
  {
   instrumentName =\markup{\override #'(font-name ."lilyjazz-text") "Batterie"}
   \numericTimeSignature   
  }
 {
  s1 s s s
  <<
   \new DrumVoice{\voiceOne\mainDroite}
   \new DrumVoice{\voiceTwo\mainGauche}
   \new DrumVoice{\voiceThree\piedDroit}
   \new DrumVoice{\voiceFour\piedGauche}
  >>
 }
%----------------------------------------------
\score
 {
  <<
   \LesAccords
   \Harmo
   \LeChant
   \new PianoStaff
    \with {instrumentName =\markup{\override #'(font-name ."lilyjazz-text") "Clavier"}}
    <<
     \new Staff\Droite
     \new Staff\Gauche
    >>
    \new PianoStaff
    \with  {instrumentName =\markup{\override #'(font-name ."lilyjazz-text") "Piano"}}
    <<
      \new Staff\LaMainDroite
      \new Staff\LaMainGauche
    >>
   \LaGuitareRythme
   \LaGuitareSolo
   \LaBasse
   \LaBatterie
  
  >>
 \layout
  { 
   \context
   {
    \ChoirStaff
    \override SystemStartBracket.collapse-height = #1
    \override SystemStartBar.collapse-height = #1
   }
  \context
   {
    \Score
    \override VerticalAxisGroup.remove-first = ##t
    \override SystemStartBar.collapse-height = #1
    \override VerticalAxisGroup.remove-empty = ##t
   }
    \context
    {\Staff \RemoveEmptyStaves}
  }
}

Voila je dois certainement oublier quelque chose?

Autre question: dans la doc je ne trouve pas une rubrique recherche ou l'on peut

inscrire le mot que l'on recherche sans rechercher dans tout les chapitres.

Je m'y perd un peu

Cordialement

Christian

Attachment: pEpkey.asc
Description: application/pgp-keys


reply via email to

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