]> git.donarmstrong.com Git - lilypond.git/blob - input/test/Cc-chords.ly
release: 1.3.147
[lilypond.git] / input / test / Cc-chords.ly
1 \header {
2   texidoc="Jazz chord names, but with lower case names for minor chords";
3 }
4
5 #(assoc-set! chord::names-alist-jazz
6   '((0 . 0) (2 . -1)) '(""))
7
8 #(assoc-set! chord::names-alist-jazz
9    '((0 . 0) (2 . -1) (4 . 0) (6 . -1)) '("7"))
10
11 #(define (pitch->chord-name-text-banter pitch additions)
12   (let ((name (pitch->text-banter pitch)))
13     (if (member '(2 . -1) (map pitch->note-name additions))
14         (cons (string-append
15                (string-downcase (substring (car name) 0 1))
16                (substring (car name) 1))
17                (cdr name))
18         name)))
19
20 \score {
21   <
22     \property ChordNames.ChordName \set #'style = #'jazz
23     \context ChordNames \chords { c1 c:m c:m7 }
24   >
25 }