On 31/07/11 11:35, lemniskata.bernoull...@gmail.com wrote: > New patch uploaded. Passes regtests made from scratch. > > http://codereview.appspot.com/4800051/ >
Assuming that it's okay and is applied, I've redone my docu patch. The snippet prints a four-bar phrase with just the standard chord (to trap the regression that bit us this time :-), then sets the capoPitch to print transposed chords for the next four bars, then sets capoVertical to print chords one above the other for the last four bars. iirc that will then become the regression test for this feature? Cheers, Wol
>From fa8b9103ad01ec813807eedf9cea8fedb03d6f94 Mon Sep 17 00:00:00 2001 From: Wol <anth...@youngman.org.uk> Date: Sun, 31 Jul 2011 17:10:13 +0100 Subject: [PATCH 2/2] 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 +@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. 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. + +@lilypond[verbatim,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 + } +>> +@end lilypond + @snippets @c Keep index entries with following snippet -- 1.7.3.4
_______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel