[tablatures] Power chords

[ Thread Index | Date Index | More lilynet.net/tablatures Archives ]


Hi all,

here is a solution for typesetting power chords and their symbols. The solution is not new and I didn't invent it but including the little file makes life a tiny bit easier. Maybe these few lines of code could become part of the lilypond bundle thus making it unnecessary to have to include them in each and every file containing power chords??? Where would they have to go?

The following example shows that there are quite a few ways of coding power chords. Personally I like using for example c1:1.5 or c1:1.5.8 for two- and three-voiced power chords as it's short and shows clearly which steps are in the chord. If no one objects I could offer to add a few lines of text to the manual concerning power chords??!! Is it worth adding this example to the snippet repository?

\version "2.13.33" % on Mac OS X

\include "powerchords.ly"

ChordsAndSymbols = \chordmode {
  \set chordNameExceptions = #powerChords
  \set minimumFret = #3
  c,1^3
  d,1:5^3
  c,1:5.8^3
  \set minimumFret = #1
  f,,1:5.8^3
  g,,1:8^3.7
  \set minimumFret = #8
  c,1:1.5
  c,1:1.5.8
  \set minimumFret = #3
  f,1^3
  f,1:5.8^3
  bes,1:5.8^3
  \set minimumFret = #0
  a,,1:5.8^3
  e,,1:5.8^3
}

\score {
  <<
    \new ChordNames { \ChordsAndSymbols }
    \new Staff {
      \clef "treble_8"
	    \ChordsAndSymbols
    }
    \new TabStaff {
      \ChordsAndSymbols
    }
  >>
}

Thanks for any feedback!
patrick

Attachment: powerchords.ly
Description: Binary data





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/