]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/jazz-chords.ly
release: 1.3.126
[lilypond.git] / input / test / jazz-chords.ly
index 3ec8bd437d5a4b5f8c1fc3c84791a4593729f3f5..3eb5a6563939ce344ab5c40378bd6f898a545645 100644 (file)
@@ -1,3 +1,6 @@
+
+\version "1.3.117";
+
 %% This should only be necessary if your kpathsea setup is broken
 %
 % Make sure the correct msamxx.tfm is where lily can find it
@@ -5,60 +8,60 @@
 %
 % For normal (20pt) paper, do
 %
-%   cp locate `msam9.tfm` $LILYPONDPREFIX/tfm
+%   cp locate `msam9.tfm` LILYPONDPREFIXxtfm
 %
 
-chord = \notes\transpose c''\chords{
-\property ChordNames.ChordNames \push #'style = #"jazz"
-% major chords
-c
-c:6            % 6 = major triad with added sixth
-c:maj          % triangle = maj
-c:6.9^7                % 6/9 
-c:9^7          % add9
-
-% minor chords
-c:m            % m = minor triad
-c:m.6          % m6 = minor triad with added sixth
-c:m.7+         % m triangle = minor major seventh chord
-c:3-.6.9^7     % m6/9 
-c:m.7          % m7
-c:3-.9         % m9
-c:3-.9^7       % madd9
+scheme = \chords {
+  % major chords
+  c
+  c:6          % 6 = major triad with added sixth
+  c:maj                % triangle = maj
+  c:6.9^7      % 6/9 
+  c:9^7                % add9
 
-% dominant chords
-c:7            % 7 = dominant
-c:7.5+         % +7 = augmented dominant
-c:7.5-         % 7b5 = hard diminished dominant
-c:9            % 7(9)
-c:9-           % 7(b9)
-c:9+           % 7(#9)
-c:13^9.11      % 7(13)
-c:13-^9.11     % 7(b13)
-c:13^11                % 7(9,13)
-c:13.9-^11     % 7(b9,13)
-c:13.9+^11     % 7(#9,13)
-c:13-^11       % 7(9,b13)
-c:13-.9-^11    % 7(b9,b13)
-c:13-.9+^11    % 7(#9,b13)
+  % minor chords
+  c:m          % m = minor triad
+  c:m.6                % m6 = minor triad with added sixth
+  c:m.7+       % m triangle = minor major seventh chord
+  c:3-.6.9^7   % m6/9 
+  c:m.7                % m7
+  c:3-.9       % m9
+  c:3-.9^7     % madd9
 
-% half diminished chords
-c:m5-.7                % slashed o = m7b5
-c:9.3-.5-      % ΓΈ7(pure 9)
+  % dominant chords
+  c:7          % 7 = dominant
+  c:7.5+       % +7 = augmented dominant
+  c:7.5-       % 7b5 = hard diminished dominant
+  c:9          % 7(9)
+  c:9-         % 7(b9)
+  c:9+         % 7(#9)
+  c:13^9.11    % 7(13)
+  c:13-^9.11   % 7(b13)
+  c:13^11      % 7(9,13)
+  c:13.9-^11   % 7(b9,13)
+  c:13.9+^11   % 7(#9,13)
+  c:13-^11     % 7(9,b13)
+  c:13-.9-^11  % 7(b9,b13)
+  c:13-.9+^11  % 7(#9,b13)
 
-% diminished chords
-c:m5-.7-       % o = diminished seventh chord
+  % half diminished chords
+  c:m5-.7              % slashed o = m7b5
+  c:9.3-.5-    % o/7(pure 9)
 
+  % diminished chords
+  c:m5-.7-     % o = diminished seventh chord
 }
 
-\score{
-<
-\context ChordNames \chord
-\context Staff \chord
->
-    \paper
-    {
-        \translator { \ChordNamesContext ChordNames \push #'word-space = #1 }
-%        \translator { \LyricsContext textScriptWordSpace = #0.3 }
+\score {
+  \notes <
+    \context ChordNames \scheme
+    \context Staff \transpose c'' \scheme
+  >
+  \paper {
+    \translator { 
+      \ChordNamesContext
+      ChordName \override #'word-space = #1 
+      ChordName \override #'style = #'jazz
     }
+  }
 }