%% Generated by lilypond-book.py %% Options: [alt=[image of music],printfilename,indent=0\mm,texidoc,line-width=160\mm] \include "lilypond-book-preamble.ly" % **************************************************************** % Start cut-&-pastable-section % **************************************************************** \paper { #(define dump-extents #t) indent = 0\mm line-width = 160\mm } \layout { } % **************************************************************** % ly snippet: % **************************************************************** \sourcefilename "chord-names-jazz.ly" \header { texidoc = " Chord names are generated from a list pitches. The functions which construct these names can be customised. Here are shown Jazz chords, following Ignatzek (pp. 17-18, 1995) and an alternative Jazz chord notation. Chords following Banter (1987) can also be printed from this file, but are turned off for brevity. " } chs = \transpose c' c' { 1 % m = minor triad \break % triangle = maj \break \break % 6 = major triad with added sixth % m6 = minor triad with added sixth \break \break \break \break \break \break \break % add9 } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % alternate Jazz notation efullmusicJazzAlt = { 1-\markup { "+" } -\markup { \normal-size-super % \override #'(font-family . math) "N" } \override #'(font-family . math) "M" } %%c:3.5.7 = \markup { \override #'(font-family . math) "M" } %%c:3.5.7 = \markup { \normal-size-super "maj7" } -\markup { \super "o" } % should be $\circ$ ? -\markup { \super \combine "o" "/" } -\markup { \super "o7" } } efullJazzAlt = #(sequential-music-to-chord-exceptions efullmusicJazzAlt #f) epartialmusicJazzAlt = { 1-\markup { \normal-size-super "2" } -\markup { "m" } -\markup { \normal-size-super "sus4" } -\markup { \normal-size-super "5" } %% TODO, partial exceptions -\markup { "m" }-\markup { \normal-size-super "sus4" } -\markup { "m" }-\markup { \normal-size-super "sus2" } } epartialJazzAlt = #(sequential-music-to-chord-exceptions epartialmusicJazzAlt #f) jazzAltProperties = \sequential { \set majorSevenSymbol = #whiteTriangleMarkup \set chordNameSeparator = #(make-simple-markup "/") \set chordNameExceptionsFull = #efullJazzAlt \set chordNameExceptionsPartial = #epartialJazzAlt \set chordNameFunction = #jazz-chord-names } banterProperties = \sequential { \set chordNameFunction = #banter-chord-names } \score{ << \new ChordNames { \set instrument = #"Ignatzek (default)" \set instr = #"Def" \chs } \new ChordNames { \jazzAltProperties \set instrument = #"Alternative" \set instr = #"Alt" \chs } %{ %% This is the Banter (1987) style. It gives exceedingly %% verbose (wide) names, making the output file take up to 4 pages. %% (FIXME: how big is is now?) %% Turned off by default. %% FIXME: use smaller font for Banter (or remove some esoteric %% chords). \new ChordNames { \banterProperties \set instrument = #"Banter" \set instr = #"Ban" \chs } %} \new Staff \transpose c c' { \chs } >> \layout { indent = 3.\cm \context { \ChordNames \consists Instrument_name_engraver } } } % **************************************************************** % end ly snippet % ****************************************************************