On Wed, Nov 27, 2024 at 9:26 AM Tim's Bitstream via LilyPond user
discussion <[email protected]> wrote:

> I am trying to get a G triad with added #11 in \chordmode.    G add #11
> would be fine on the lead sheet as would G (add #11).  So far Lilypond
> insists on making it a G7#11 and other variants on this.  I even somehow
> got a G7sus4 9 once.
>
> I am \include-ing roemer-chord.ly and have added
>
> <c e g fis'>-\markup {"add" \chordSharp "11" }
>
> to no apparent avail.
>
> I've tried various ways of calling this from the input file but haven't
> figured out the right thing.  Currently I have g2:11+ resulting in G7#11 on
> the lead sheet.  How do I get the dominant 7 to stop printing?  Seems like
> I am missing something basic here.
>
> FWIW I am using 2.19.83.  Updating Lily Pond to newer versions on the Mac
> invariably involves breaking things, so I haven't gotten around to doing it.
>

Attached is a LilyPond file that will do "add2's" as well as "add+11's".  I
don't know if it works in 2.19.83.


--
Knute Snortum
\version "2.24.0"

#(define ((add-modifier minor?) pitches)
   (sort (list (ly:make-pitch 0 0 0)
               (ly:make-pitch 0 2 (if minor? FLAT 0))
               (ly:make-pitch 0 4 0)
               (last pitches))
         ly:pitch<?))

#(set! chordmodifiers (append chordmodifiers
   (list (cons 'add (add-modifier #f))
         (cons 'madd (add-modifier #t)))))

addExceptionsMusic = {
   <c d e g>1-\markup { \super "add2" }
   <c e f g>1-\markup { \super "add4" }
   <c e g d'>1-\markup { \super "add9" }
   <c e g fis'>1-\markup { \super { "add"
     #(alteration->text-accidental-markup SHARP) "11" } }
   <c d ees g>1-\markup { m \super "add2" }
   <c ees f g>1-\markup { m \super "add4" }
   <c ees g des'>1-\markup { m \super { "add"
     #(alteration->text-accidental-markup FLAT) "9" } }
   <c ees g d'>1-\markup { m \super "add9" }
}

addExceptions =
#(append
   (sequential-music-to-chord-exceptions addExceptionsMusic #t)
   ignatzekExceptions)

music = \chordmode {
   \set chordNameExceptions = #addExceptions
   c:add2 d:add4 e:add9 f:add11+
   c:madd2 d:madd4 e:madd9 f:madd9-
}
<< \new ChordNames \music \new Staff \music >>

Reply via email to