lilypond-user
[Top][All Lists]
Advanced

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

Centering Chord Diagrams


From: Patrick Millier
Subject: Centering Chord Diagrams
Date: Sat, 20 Aug 2016 23:17:10 -0400

Hi,


I'm leaning Lilypond and cannot find this one ... I got some chord diagrams at the beginning of my score and would like to center them.


Can someone help me with this (I'm sure simple) problem.


Here's my Score

---


\version "2.18.2"
\include "predefined-guitar-fretboards.ly"

somewhereChords = \chordmode {
  \override ChordName.font-size = #2
  %\global
  a1:m c1 e1:m e1:m
  a1:m f1 c1 e1:m
  a1:m f1 c1 e1:m
  a1:m f1 e1:m g1
  a1:m f1 c1 g1
  a1:m
}   

somewhereChordDiagrams = \chordmode {
  a1:m c e:m f g
}

somewhereMelody = \relative c {
  \clef "treble_8"
  \numericTimeSignature \time 4/4
  \tempo 4 = 120
  % \key d \major
  \bar ".|:"
    a8^"Intro" e' a e b' a c e,
    c e c' g  d' g, e' e,
    e, b' e b g' e a e
    e, b' e b g' e a e
  \bar ":|." \break
    a,^"Verse 1 Pt 1" e' a e c' a e a
    c, f a f c' a f a
    c, e g e c' g e g
    e, b' e b g' e b e \break
    a, e' a e c' a e a
    c, f a f c' a f a
    c, e g e c' g e g
    e, b' e b g' e b e
  \bar "||" \break
    a,^"Verse 1 Pt 2" e' a e c' a e a
    c, e g e c' g e g
    e, b' e b g' e b e
    g, b d b g' d b d \break
    a e' a e c' a e a
    c, e g e c' g e g
    e, b' e b g' e b e
    g, b d b g' d b d \break
    a^"Chorus"
  \bar "|."
}

somewhereLyrics = \lyricmode {
  \repeat unfold 32 { \skip 8 }
  Lost _ _ in _ _ the dark-
  _ ness, _ _ _ _ _ _
  hop- _ ing _ for a _ sign
  _ _ _ _ _ _ _ In-
  stead _ there's on- _ _ ly si-
  _ lence _ _ _ _ _ _
  Can _ you _ hear my _ scream?
  _ _ _ _ _ _ _ _
  Ne- _ ver _ _ _ stop _
  ho- _ ping, _ _ _ Need
  to _ know _ _ _ _ where you
  are _ _ _ _ _ But _
  one _ thing's _ _ _ for _
  sure _ _ _ _ _ You're _
  al- _ ways _ in my _ heart
  _ _ _ _ _ _ _ _
}

\book {
  \paper {
    #(set-paper-size "letter")
  }
  \bookpart {
    \header {
      %dedication = "Dedication"
      title = "Somewhere"
      subtitle = "The Silent Force"
      %instrument = "Instrument"
      %poet = "Poet"
      composer = "Within Temptation"
      %meter = "Meter"
      %arranger = "Arranger"
      %tagline = "Tagline goes at the bottom of the last page"
      %copyright = "Copyright goes at the bottom of the first page"
    }
    \score {
      <<
        \context ChordNames {
          \somewhereChordDiagrams
        }
        \context FretBoards {
          \somewhereChordDiagrams
        }
      >>
    }
    \score {
      {
        <<
          \new ChordNames \somewhereChords
          \new Staff { \somewhereMelody }
          \addlyrics { \set fontSize = #-3 \somewhereLyrics }
          \new TabStaff { \somewhereMelody }
        >>
      }
      \layout {
        indent = 0.0\cm
      }
      \header {
        %piece = "piece 1"
        %opus = "opus 1"
      }
    }
  }
  \bookpart {
    \header {
      dedication = "Dedication"
      title = "Title"
      subtitle = "Subtitle"
      instrument = "Instrument"
      poet = "Poet"
      composer = "Composer"
      meter = "Meter"
      arranger = "Arranger"
      tagline = "Tagline goes at the bottom of the last page"
      copyright = "Copyright goes at the bottom of the first page"
    }
   
    \score {
      {
        s1
      }
      \header {
        piece = "piece 1"
        opus = "opus 1"
      }
    }
    \score {
      {
        s1
      }
      \header {
        piece = "piece 2 (On the same page)"
        opus = "opus 2"
      }
    }
    %\pageBreak
    \score {
      {
        s1
      }
      \header {
        piece = "piece 3 (On a new page ... oupsss)"
        opus = "opus 3"
      }
    }
  }
}

reply via email to

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