Abc v2.2 has two scorewriter programs: abcm2ps creates PostScript files, and abc2svg creates Scalable Vector Graphics. Each of these support a number of extensions to standard Abc 2, but they aren't completely compatible with one another.
(see: http://moinejf.free.fr/abcm2ps-doc/index.html)
There are two types of chord grid in abc2svg (but none in abcm2ps). The second type (grid2
) is what you are looking for.
From Guido Gnonzato's Making Music with Abc 2, ch 5.2, p. 92:
%%grid2 [n]
replaces the notes of a voice with a chord grid. [n]
may be any digit; when it's omitted, the chord grid is not typeset;
An example is given on the following page, p. 93:
This formatting directive is also explained (using slightly different terms) in the appendix A.5.5, p. 174:
%%grid2 [int]:
replaces a voice with a chord grid. When [int]
is missing, the grid is disabled. Default: 0
; scope: voice; not available in abcm2ps.
Note that you will need to specify a rhythm for the lyrics to align with (using some dummy melody).
For the piece mentioned, you should get something like this:
X:1
T:
C:
Q:none
K:none clef=none
M:none
L:1/8
V:1
%%grid2 1
"Am" z8 | z2AA AAAA | "G" A8 | zAAA AAAA | "Am" A8 |
w:Hel-lo dark-ness my old friend, I've come to talk to you a-gain
From here, you can add the actual melody notes and other details, and turn off (or comment out) grid2
.
X:1
T:The Sound of Silence
C:Paul Simon
Q:1/4=108
K:D#min clef=treble-8
M:4/4
L:1/8
V:1
%%grid2 0
"D#m" z8 | z2DD FFAA | "C#" G8 | zCCC EEGG | "D#m" F8 |
w:Hel-lo dark-ness my old friend, I've come to talk to you a-gain