Melodeon.net Forums
Discussions => Tunes => ABC => Topic started by: Steve C. on August 04, 2015, 11:31:52 PM
-
Question for the users group:
How to I edit my abc text file to add the chord (e.g. D, Em) above the staff and above the correct note where I want to show it changing?
Cannot find, or if I am finding, am not understanding... :Ph
-
Steve, I think your question would justify to add a new topic in the ABC subforum.
Anyway, to add a chord you just put the chord name in quotation marks before the note:
X:1
T:Chord symbols
L:1/8
K:D
"Em"EeBg "D"dc"Bm"Bd
-
Steve, I think your question would justify to add a new topic in the ABC subforum.
Anyway, to add a chord you just put the chord name in quotation marks before the note:
X:1
T:Chord symbols
L:1/8
K:D
"Em"EeBg "D"dc"Bm"Bd
And if you want to force the chord symbols to appear below the stave (sometimes useful), add an underscore prefix to the chord symbol text, like this:
"_Em"EeBg "_D"dc "_Bm"Bd
-
Gosh, that is tedious! Why not a simple directive …. Chords: show ?
No answer expected, but this is a rather "messy" syntax ::)
-
Gosh, that is tedious! Why not a simple directive …. Chords: show ?
Because of Mozart? ???
-
Gosh, that is tedious! Why not a simple directive …. Chords: show ?
Because of Mozart? ???
No because ABC is designed to be terse.
-
Gosh, that is tedious! Why not a simple directive …. Chords: show ?
No answer expected, but this is a rather "messy" syntax ::)
I agree it can be a bit messy and tedious. But also agree with Theo's comment that ABC was designed to be 'terse'; originally it was meant just as a very simple way representing and easily sharing music notation using basic text files.
Output of ABC to printed music format is controlled by the program abc2ps which runs in the background of most ABC editors. There are various command-line parameters which can be entered into the ABC file to control output. They are prefixed by %% and entered before the tune header.
Example:
%%vocalabove true forces words of songs, etc. to be placed above the stave.
%%gchordbox true draws a box around each chord symbol.
There ought to be abc2ps commands such as...
%%gchordabove false
or
%%gchordbelow true
...but as far as I know these are currently invalid commands. It would be a useful addition to future versions of abc2ps.
-
Gosh, that is tedious! Why not a simple directive …. Chords: show ?
No answer expected, but this is a rather "messy" syntax ::)
I agree it can be a bit messy and tedious. But also agree with Theo's comment that ABC was designed to be 'terse'; originally it was meant just as a very simple way representing and easily sharing music notation using basic text files.
Apart from the useful hint to PS commands I've always been finding it rather useful to first write down the notes very quickly and easily, and then add further information as required...
Best wishes - Wolf
-
And if you want to force the chord symbols to appear below the stave (sometimes useful), add an underscore prefix to the chord symbol text, like this:
"_Em"EeBg "_D"dc "_Bm"Bd
Cave, when transposing a tune: chord symbols will be transposed - without underscores!
So first transpose it, then add underscores.
Some time ago someone had a solution for putting chord symbols below the stave. However, I can't find the thread.
-
And if you want to force the chord symbols to appear below the stave (sometimes useful), add an underscore prefix to the chord symbol text, like this:
"_Em"EeBg "_D"dc "_Bm"Bd
Gosh (again!), I did not know that!
The way I used to do it in ABCExplorer (which I think uses abcm2ps) was to include an information field/line:
V:<voice ID> gchord=down
but it is cumbersome because you also need a
V:<voice ID>
later in the file but before the music proper to set the voice - this method does not suffer from the transposition glitch TomBom described.
I've now standardised on putting chord symbols above the stave with words/lyrics (if any) below.
vof
(Edited to correct name of abcm2ps)
-
Thanks, all, works great!
-
Plus, it is very nice that the chords transpose along with the dots...
-
Some time ago someone had a solution for putting chord symbols below the stave. However, I can't find the thread.
The ABC converter I use - http://www.colinhume.com/Music.aspx - forces chords below by adding a line
V:1 gchord=down
to the ABC text
-
V:1 gchord=down - that's it. It works with my version of abcm2ps.
Thanks!
-
V:1 gchord=down - that's it. It works with my version of abcm2ps.
Thanks!
I've just tried this with EasyABC (for Mac). Yes, it does indeed work, but the V:1 gchord=down has to go after the K: (key) field and before the first line of the tune proper.
-
Beware that the "gchord=down" is not standard ABC. It's an extension introduced in abcm2ps, which is used as the ABC engine by many ABC editors so it works and is portable between them, but there's no mention of it in ABC standard 2.0 or 2.1.
-
Syntax varies too, Steve noted that the V:1 gchords=down statement has to go after the K: field in Easy ABC but it works anwhere in the header in ABC Explorer. MC MusicEditor allows the even more peculiar %% gchords below statement in the header or body text (in square brackets of course). Straying too far from the standard results in incompatible abc files!!