X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fchord-modifiers-init.ly;h=e401937b023ad445670472df993d53d03c73ae78;hb=5e107bca9e65eb017d4e6905bcd1e73e70b49894;hp=e01ab5d8ca4058e2c602af78ed53d0dc408c213c;hpb=b2a8b42e57aefbf1119ef2809950a35b81dc7d43;p=lilypond.git diff --git a/ly/chord-modifiers-init.ly b/ly/chord-modifiers-init.ly index e01ab5d8ca..e401937b02 100644 --- a/ly/chord-modifiers-init.ly +++ b/ly/chord-modifiers-init.ly @@ -1,19 +1,57 @@ -\version "1.7.3" +\version "2.10.0" +chordmodifiers = #default-chord-modifier-list -\chordmodifiers #default-chord-modifier-list +whiteTriangleMarkup = \markup { + \triangle ##f + %% 394 capital delta + %#(ly:export (ly:wide-char->utf-8 #x0394)) -whiteTriangleMarkup =#(make-override-markup '(font-family . math) (make-simple-markup "M")) + %% 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 = #(make-override-markup '(font-family . math) (make-simple-markup "N")) +blackTriangleMarkup = \markup { + \triangle ##t -ignatzekExceptionMusic = \notes { - <>1-\markup { "+" } - <>-\markup { \super "o" } % should be $\circ$ ? - <>-\markup { \super \combine "o" "/" } - <>-\markup { \super "o7" } + %% black up pointing triangle +% #(ly:export (ly:wide-char->utf-8 #x25B2)) } -ignatzekExceptions = #(sequential-music-to-chord-exceptions ignatzekExceptionMusic) +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)