lilypond-user
[Top][All Lists]
Advanced

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

Re: creating chords like F/A(D/F#) with \chordmode { }


From: Klaus Blum
Subject: Re: creating chords like F/A(D/F#) with \chordmode { }
Date: Sat, 12 Mar 2016 10:30:37 -0700 (MST)

It looks like the goal is to create alternative chords in a different key,
e.g for a guitar with a capo on the 3rd fret.

A function to put chordnames into parentheses (better than \parenthesize)
can be found here:
http://www.lilypondforum.de/index.php?action=profile;area=showposts;u=54

Here is what I would try:

% -----------------------------------------------------------------------
\version "2.19.25"

#(define (parenthesis-ignatzek-chord-names in-pitches bass inversion
context)
   (markup #:line ( "(" (ignatzek-chord-names in-pitches bass inversion
context) ")" )))

klamm = #(define-music-function (parser location griffe) (ly:music?)
           #{
             \set chordNameFunction = #parenthesis-ignatzek-chord-names
             $griffe
             \set chordNameFunction = #ignatzek-chord-names
           #})


\score {
  <<
    \new ChordNames \chordmode {
      c2 c/e f g
    }
    \new ChordNames \transpose c a \chordmode {
      \klamm { c2 c/e f g }
    }
    \new Staff \relative c'' {
      c2 c a4 c b2
    }
  >>
}

\score {
  <<
    \new ChordNames \chordmode {
      c16 \klamm a4.. c16/e \klamm a4../cis  f16 \klamm d4.. g16 \klamm e4..
    }
    \new Staff \relative c'' {
      c2 c a4 c b2
    }
  >>
}
% -----------------------------------------------------------------------

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/creating-chords-like-F-A-D-F-with-chordmode-tp188466p188473.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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