lilypond-user
[Top][All Lists]
Advanced

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

Re: Any way to get "optional" chords?


From: Flaming Hakama by Elaine
Subject: Re: Any way to get "optional" chords?
Date: Wed, 30 Nov 2016 17:25:04 -0800


One problem that I'm currently encountering is dealing with optional
chords. (The chord letters above the staff for guitar players.) These 
are generally shown in either parentheses or square brackets. Is there
a way to handle several arbitrary chord names  differently on a score?
By this I mean, for example, just this D, but not the others.


Here is a solution from the german forum
http://www.lilypondforum.de/index.php?action="">


\version "2.19.15"

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

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

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

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

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

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


\new ChordNames \chordmode {
    c2:maj7 \paren a:7 | d:m g:7 | c1 | \leftParen es4:m7 aes:7 d:m \rightParen g:7
}

 
415 . 341 .4954                                           "Confusion is highly underrated"
address@hidden
self-immolation.info
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

reply via email to

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