From b55e5678509059effdd3973a2a0beb0af6445e4c Mon Sep 17 00:00:00 2001 From: Wol Date: Sun, 31 Jul 2011 17:10:13 +0100 Subject: [PATCH 2/3] Document the use of the capoPitch and capoVertical properties --- Documentation/notation/chords.itely | 50 +++++++++++++++++++++++++++++++++++ 1 files changed, 50 insertions(+), 0 deletions(-) diff --git a/Documentation/notation/chords.itely b/Documentation/notation/chords.itely index 1109075..982ed4b 100644 --- a/Documentation/notation/chords.itely +++ b/Documentation/notation/chords.itely @@ -506,6 +506,56 @@ Rests passed to a @code{ChordNames} context will cause the } @end lilypond address@hidden Transposing guitar chords for capo + +If the @code{capoPitch} property is set, then the chords will additionally be printed +transposed for a guitar with the capo set appropriately. By default the chords are +printed on one line, but if the @code{capoVertical} property is set, the chords will be +printed one above the other. + +In make-pitch, leave the first argument at 0, the second argument is the +interval (-2 is a third), and the third argument adjusts it up or down a +semitone. + address@hidden,quote,ragged-right] +<< + \new ChordNames \chordmode { + c1 + r1 + g1 + c1 + \break + c1 + r1 + g1 + c1 + \break + c1 + r1 + g1 + c1 + } + \chordmode { + c1 + r1 + g1 + c1 + \break + \set ChordNames.capoPitch = #(ly:make-pitch 0 -2 -1/2) + c1 + r1 + g1 + c1 + \break + \set ChordNames.capoVertical = ##t + c1 + r1 + g1 + c1 + } +>> address@hidden lilypond + @snippets @c Keep index entries with following snippet -- 1.7.0.4