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