%% 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 2328
#(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 % avoid having two
  \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
  }
}

%% These contexts have reference points at the baseline:
%%   ChordNames, NoteNames, and Lyrics
<<
  \chords { \labelContext "ChordNames  " g1:m }
  \new NoteNames { s1 | \labelContext "NoteNames  " g1 }
  \lyrics { \skip 1*2 | \labelContext "Lyrics" ghijk1 }
  \new RhythmicStaff \with { instrumentName = "baseline " } s1*3
>>

%% The reference point for Dynamics is the midline of 'm' in the font.
<<
  \new Dynamics { \labelContext "Dynamics" s1\mp s\fp }
  \new RhythmicStaff \with { instrumentName = "mid-height " } s1*2
>>

%% The reference point for FiguredBass is the baseline of the topmost
%% element.
<<
  \figures { \labelContext "FiguredBass" \figuremode { <6 4 2>1 } }
  \new RhythmicStaff \with { instrumentName = "top baseline " } s1
>>

%% The reference point for FretBoards is the top line
\include "predefined-guitar-fretboards.ly"
<<
  \new FretBoards { \labelContext "FretBoards" \chordmode { e1 } }
  \new RhythmicStaff \with { instrumentName = "top line " } s1
>>


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