]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/chord-name-exceptions.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / snippets / chord-name-exceptions.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.16.0"
8
9 \header {
10   lsrtags = "chords, specific-notation"
11
12   texidoc = "
13 The property @code{chordNameExceptions} can be used to store a list of
14 special notations for specific chords.
15
16 "
17   doctitle = "Chord name exceptions"
18 } % begin verbatim
19
20
21 % modify maj9 and 6(add9)
22 % Exception music is chords with markups
23 chExceptionMusic = {
24   <c e g b d'>1-\markup { \super "maj9" }
25   <c e g a d'>1-\markup { \super "6(add9)" }
26 }
27
28 % Convert music to list and prepend to existing exceptions.
29 chExceptions = #( append
30   ( sequential-music-to-chord-exceptions chExceptionMusic #t)
31   ignatzekExceptions)
32
33 theMusic = \chordmode {
34   g1:maj9 g1:6.9
35   \set chordNameExceptions = #chExceptions
36   g1:maj9 g1:6.9
37 }
38
39 \layout {
40   ragged-right = ##t
41 }
42
43 << \context ChordNames \theMusic
44    \context Voice \theMusic
45 >>