X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fchord-modifiers-init.ly;h=e401937b023ad445670472df993d53d03c73ae78;hb=b4d4ac4ddd6c142a7017918814e3a0a57a037861;hp=8ca73942373a26fb602887293255f2c29ea870b6;hpb=899a5926b98860f3d5db399616d9211927fbfa3c;p=lilypond.git diff --git a/ly/chord-modifiers-init.ly b/ly/chord-modifiers-init.ly index 8ca7394237..e401937b02 100644 --- a/ly/chord-modifiers-init.ly +++ b/ly/chord-modifiers-init.ly @@ -1,17 +1,57 @@ -\version "1.7.3" - -% urg! -% -\chordmodifiers #`( - (m . ,(ly:make-pitch 0 2 -1 )) - (min . ,(ly:make-pitch 0 2 -1 )) - (aug . ,(ly:make-pitch 0 4 1 )) - ;; (dim . ,(ly:make-pitch -100 4 -1 )) - (dim . ,(ly:make-pitch -100 2 -1 )) - ;; urg, not actually a chord-modifier, but it works - ;; c7 -> , c 7+ -> c b - (maj . ,(ly:make-pitch 0 6 1 )) - ;; sus4 should delete 2 too... - (sus . ,(ly:make-pitch 0 3 0 )) -) +\version "2.10.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)) + + %% \override #'(font-encoding . TeX-math) \char #77 +} + +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)