lilypond-user
[Top][All Lists]
Advanced

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

Re: Two Line of Chords


From: Kieren MacMillan
Subject: Re: Two Line of Chords
Date: Thu, 22 Jan 2009 14:25:19 -0500

Wonderful!
You know the next question, do you :)
How to get the chordnames centered under each other?

Here's one way:

\version "2.12"

#(define (centred-ignatzek-chord-names in-pitches bass inversion context) (markup #:center-align (ignatzek-chord-names in-pitches bass inversion context) ))

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

chordset = \chordmode
{
    c1:7   |
    g1:7.5+   |
    f2:min6 d4:11 g:7   |
    c:5.2^3
}

\score
{
        <<
\new ChordNames \with { chordNameFunction = #centred-ignatzek-chord- names } \chordset \new ChordNames \with { chordNameFunction = #centred-parenthesis- ignatzek-chord-names } \transpose d c \chordset
                \new Staff \chordset
        >>
        \layout
        {
                \context
                {
                        \ChordNames
                        \override ChordName #'X-offset = #1
                }
        }
}




reply via email to

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