\version "2.8.0" \header { title = "<{TITLE}>" poet = "<{POET}>" composer= "<{COMPOSER}>" arranger = "<{ARRANGER}>" tagline = #(string-append "Created with VocalEasel <{VLVERSION}> / Lilypond " (lilypond-version)) } \paper { #(set-paper-size <{PAPERSIZE}>) indent = 0.0\cm pagenumber = no page-top-space = #.1 <{FORMATTING}> } #(set-global-staff-size <{STAFFSIZE}>) % % Rather than write a principled formatting procedure, we just define special cases for % all the chords we're interested in. % vlMaj = \markup {\smaller \whiteTriangleMarkup} vlSus = \markup {\fontsize #-4.0 "sus"} vlSusKern = \markup {\hspace #-0.5 \vlSus} vlSharp = #(alteration->text-accidental-markup SHARP) vlFlat = #(markup #:hspace 0.2 (alteration->text-accidental-markup FLAT)) #(define-markup-command (vlStack layout props top bottom) (markup? markup?) "Stack two accidentals" (interpret-markup layout props (markup #:raise 3.0 #:fontsize -5.0 #:column (#:with-dimensions '(0 . 3) '(0 . 5) top bottom)))) #(define-public (vlBassNamer . args) "Return pitch markup for PITCH." (markup #:sub #:line (#:raise 1.0 "/" (apply note-name->markup args)))) vlExceptionMusic = { 1-\markup { \super "13" } 1-\markup { \super "6/9" } 1-\markup { "m" \super "6/9" } 1-\markup { \super {\vlMaj "13"} } 1-\markup { "m" \super { "9" \vlFlat "5" } } 1-\markup { "m" \super { "11" \vlFlat "5" } } 1-\markup { \vlSus} 1-\markup { \super "7" \vlSusKern } 1-\markup { \super "9" \vlSusKern } 1-\markup { \super "13" \vlSusKern } 1-\markup { \super "7" \vlSusKern \super {\vlFlat "9"}} 1-\markup { \super "13" \vlSusKern \super {\vlFlat "9"}} -\markup { \super {\vlMaj \vlSharp "11" } } -\markup { \super {\vlMaj "9" \vlSharp "11" } } -\markup { \super {\vlMaj "13" \vlSharp "11" } } 1-\markup { \super { "9" \vlFlat "5" } } 1-\markup { \super { "13" \vlFlat "5" } } 1-\markup { \super { "13" \vlFlat "9" } } 1-\markup { \super { "13" \vlSharp "11" } } 1-\markup { \super { "9" \vlSharp "5" } } 1-\markup { \super "7" \vlStack \line {\vlFlat "9"} \line {\vlFlat "5"}} 1-\markup { \super "7" \vlStack \line {\vlFlat "9"} \line {\vlSharp "5"}} 1-\markup { \super "7" \vlStack \line {\vlSharp "9"} \line {\vlFlat "5"}} 1-\markup { \super "7" \vlStack \line {\vlSharp "9"} \line {\vlSharp "5"}} 1-\markup { \super { "7" \vlSharp "11" } } 1-\markup { \super { "9" \vlSharp "11" } } 1-\markup { \super "7" \vlStack \line {\vlSharp "11"} \line {\vlFlat "9"}} 1-\markup { \super "7" \vlStack \line {\vlSharp "11"} \line {\vlSharp "9"}} 1-\markup { \super "7" \vlStack \line {\vlFlat "13"} \line {\vlFlat "9"}} } vlExceptions = #(append (sequential-music-to-chord-exceptions vlExceptionMusic #t) ignatzekExceptions) \score { << \override Score.ChordName #'font-family = #'Didot \override Score.ChordName #'font-size = #<{CHORDSIZE}> \override Score.LyricText #'font-family = #'Baskerville \override Score.LyricText #'font-size = #<{LYRICSIZE}> \context ChordNames \chords { \set chordNameExceptions = #vlExceptions \set chordNameSeparator = "" \set chordRootNamer = #note-name->markup \set chordNoteNamer = #vlBassNamer \set majorSevenSymbol = \vlMaj <{CHORDS}> } \context Voice = "mel" { <{NOTES}> } \lyricsto "mel" \new Lyrics { <{LYRICS}> } >> }