X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fchord-modifiers-init.ly;h=98b11b675242bcbd459c720a8adaf2499f27c4af;hb=83e8a690dedde494180e0eeb2bfafe8208d147e3;hp=ac3c2a15683f021774a8717d5587284d9ec92a90;hpb=aa384518d059d26ffd6c0da3068fbdc2a345ecc1;p=lilypond.git diff --git a/ly/chord-modifiers-init.ly b/ly/chord-modifiers-init.ly index ac3c2a1568..98b11b6752 100644 --- a/ly/chord-modifiers-init.ly +++ b/ly/chord-modifiers-init.ly @@ -1,17 +1,55 @@ -\version "1.5.49" - -% urg! -% -\chordmodifiers #`( - (m . ,(make-pitch 0 2 -1 )) - (min . ,(make-pitch 0 2 -1 )) - (aug . ,(make-pitch 0 4 1 )) - ;; (dim . ,(make-pitch -100 4 -1 )) - (dim . ,(make-pitch -100 2 -1 )) - ;; urg, not actually a chord-modifier, but it works - ;; c7 -> , c 7+ -> c b - (maj . ,(make-pitch 0 6 1 )) - ;; sus4 should delete 2 too... - (sus . ,(make-pitch 0 3 0 )) -) +\version "2.12.0" +chordmodifiers = #default-chord-modifier-list + + +whiteTriangleMarkup = \markup { + \triangle ##f + %% 394 capital delta + %#(ly:export (ly:wide-char->utf-8 #x0394)) + + %% 2206 : delta from the symbol font. + % #(ly:export (ly:wide-char->utf-8 #x2206)) + + %% up pointing triangle + % #(ly:export (ly:wide-char->utf-8 #x25B3)) +} + +blackTriangleMarkup = \markup { + \triangle ##t + + %% black up pointing triangle +% #(ly:export (ly:wide-char->utf-8 #x25B2)) +} + +ignatzekExceptionMusic = { + 1-\markup { "+" } + -\markup { \super "o" } % should be $\circ$ ? + -\markup { + %% f8 is o with slash. + \super #(ly:export (ly:wide-char->utf-8 #x00f8)) + } + -\markup { \super "o7" } +} + +partialJazzMusic = { + 1-\markup { \normal-size-super "2" } + -\markup { "m" } + -\markup { \normal-size-super "sus4" } + -\markup { \normal-size-super "5" } + + %% TODO, partial exceptions + -\markup { "m" }-\markup { \normal-size-super "sus4" } + -\markup { "m" }-\markup { \normal-size-super "sus2" } +} + + +%% TODO: compatibility ignatzek code +fullJazzExceptions= +#(sequential-music-to-chord-exceptions ignatzekExceptionMusic #f) + +partialJazzExceptions= +#(sequential-music-to-chord-exceptions partialJazzMusic #f) + +ignatzekExceptions = +#(sequential-music-to-chord-exceptions ignatzekExceptionMusic #t)