%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,paper-height=845.047\pt,paper-width=597.508\pt,papersize='(cons (* 597.508 pt) (* 845.047 pt)),quote]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  #(set-paper-size '(cons (* 597.508 pt) (* 845.047 pt)))
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
  line-width = 160\mm - 2.0 * 10.16\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefileline 2264
#(define zero-space '((padding . -inf.0) (basic-distance . 0)))

alignToZero = \with {
  \override VerticalAxisGroup.nonstaff-relatedstaff-spacing = #zero-space
  \override VerticalAxisGroup.nonstaff-nonstaff-spacing = #zero-space
  \override VerticalAxisGroup.staff-affinity = #DOWN

  \remove Text_engraver % évite d'en avoir deux
  \consists Text_engraver
}

lowerCaseChords = \with {
  chordNameLowercaseMinor = ##t
}

labelContext =
#(define-music-function (context) (string?)
   #{ <>^\markup { \upright \typewriter #context } #})

\layout {
  \context { \ChordNames  \alignToZero \lowerCaseChords }
  \context { \Dynamics    \alignToZero }
  \context { \FiguredBass \alignToZero }
  \context { \FretBoards  \alignToZero }
  \context { \Lyrics      \alignToZero }
  \context { \NoteNames   \alignToZero }

  \context { \Score
    \omit BarLine
    \omit TimeSignature

    \override DynamicText.self-alignment-X = -0.5
    \override FretBoard.X-offset = 1.75
    \override LyricText.self-alignment-X = #LEFT
    \override TextScript.Y-offset = 3

    \textLengthOn
  }
}

%% Contextes dont le point de référence est la ligne de base :
%%   ChordNames, NoteNames et Lyrics
<<
  \chords { \labelContext "ChordNames"  g1:m }
  \new NoteNames { s1 |\labelContext "NoteNames"  g1 }
  \lyrics { \skip 1*2 | \labelContext "Lyrics" ghijk1 }
  \new RhythmicStaff \with { instrumentName =
                               "ligne de base (baseline) " } s1*3
>>

%% Le point de référence de Dynamics est le milieu du « m » dans la fonte
<<
  \new Dynamics { \labelContext "Dynamics" s1\mp s\fp }
  \new RhythmicStaff \with { instrumentName = "mi-hauteur " } s1*2
>>

%% Le point de référence de FiguredBass est la ligne de base
%%   de son élément le plus haut
<<
  \figures { \labelContext "FiguredBass" \figuremode { <6 4 2>1 } }
  \new RhythmicStaff \with { instrumentName =
                               "base du chiffre le plus haut " } s1
>>

%% Le point de référence de FretBoards est la ligne du haut
\include "predefined-guitar-fretboards.ly"
<<
  \new FretBoards { \labelContext "FretBoards" \chordmode { e1 } }
  \new RhythmicStaff \with { instrumentName = "ligne du haut " } s1
>>


% ****************************************************************
% end ly snippet
% ****************************************************************
