]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/chord-name-exceptions.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / Documentation / snippets / chord-name-exceptions.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.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.18.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 % modify maj9 and 6(add9)
21 % Exception music is chords with markups
22 chExceptionMusic = {
23   <c e g b d'>1-\markup { \super "maj9" }
24   <c e g a d'>1-\markup { \super "6(add9)" }
25 }
26
27 % Convert music to list and prepend to existing exceptions.
28 chExceptions = #( append
29   ( sequential-music-to-chord-exceptions chExceptionMusic #t)
30   ignatzekExceptions)
31
32 theMusic = \chordmode {
33   g1:maj9 g1:6.9
34   \set chordNameExceptions = #chExceptions
35   g1:maj9 g1:6.9
36 }
37
38 \layout {
39   ragged-right = ##t
40 }
41
42 << \context ChordNames \theMusic
43    \context Voice \theMusic
44 >>