>From 5da87456d11663f10ff2aab0e3e2ea63b6b42c36 Mon Sep 17 00:00:00 2001 From: Wol Date: Wed, 6 Jul 2011 23:42:34 +0100 Subject: [PATCH 3/3] Documentation for the capoPitch chordname property --- Documentation/notation/chords.itely | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/Documentation/notation/chords.itely b/Documentation/notation/chords.itely index 1109075..12e9390 100644 --- a/Documentation/notation/chords.itely +++ b/Documentation/notation/chords.itely @@ -506,6 +506,33 @@ Rests passed to a @code{ChordNames} context will cause the } @end lilypond +@cindex 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. + +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. + +@lilypond[verbatim,quote,ragged-right] +<< + \new ChordNames \chordmode { + c1 + b1 + g1 + c1 + } + \set ChordNames.capoPitch = #(ly:make-pitch 0 -2 -1/2) + \chordmode { + c1 + b1 + g1 + c1 + } +>> +@end lilypond + @snippets @c Keep index entries with following snippet -- 1.7.3.4