Melodeon.net Forums

Discussions => Tunes => ABC => Topic started by: Steve C. on August 04, 2015, 11:31:52 PM

Title: Adding chord symbols
Post 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
Title: Re: Adding chord symbols
Post by: TomBom on August 04, 2015, 11:42:09 PM
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:

Code: [Select]
X:1
T:Chord symbols
L:1/8
K:D
"Em"EeBg "D"dc"Bm"Bd
Title: Re: Adding chord symbols
Post by: Steve_freereeder on August 05, 2015, 01:01:56 AM
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:

Code: [Select]
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
Title: Re: Adding chord symbols
Post by: Chris Ryall on August 05, 2015, 03:00:16 AM
Gosh, that is tedious! Why not a simple directive …. Chords: show ?

No answer expected, but this is a rather "messy" syntax  ::)
Title: Re: Adding chord symbols
Post by: Sebastian on August 05, 2015, 07:09:49 AM
Gosh, that is tedious! Why not a simple directive …. Chords: show ?
Because of Mozart? ???
Title: Re: Adding chord symbols
Post by: Theo on August 05, 2015, 07:17:58 AM
Gosh, that is tedious! Why not a simple directive …. Chords: show ?
Because of Mozart? ???

No because ABC is designed to be terse. 
Title: Re: Adding chord symbols
Post by: Steve_freereeder on August 05, 2015, 07:53:50 AM
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.
Title: Re: Adding chord symbols
Post by: blue eyed sailor on August 05, 2015, 08:41:21 AM
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
Title: Re: Adding chord symbols
Post by: TomBom on August 05, 2015, 12:14:16 PM
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.
Title: Re: Adding chord symbols
Post by: vof on August 05, 2015, 12:32:31 PM
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)
Title: Re: Adding chord symbols
Post by: Steve C. on August 05, 2015, 01:14:36 PM
Thanks, all, works great!
Title: Re: Adding chord symbols
Post by: Steve C. on August 05, 2015, 04:36:06 PM
Plus, it is very nice that the chords transpose along with the dots...
Title: Re: Adding chord symbols
Post by: Bill Young on August 05, 2015, 11:20:35 PM

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
Title: Re: Adding chord symbols
Post by: TomBom on August 05, 2015, 11:40:48 PM
V:1 gchord=down - that's it. It works with my version of abcm2ps.
Thanks!
Title: Re: Adding chord symbols
Post by: Steve_freereeder on August 06, 2015, 12:36:26 AM
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.
Title: Re: Adding chord symbols
Post by: Anahata on August 06, 2015, 01:16:35 AM
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.
Title: Re: Adding chord symbols
Post by: Pete Dunk on August 07, 2015, 06:32:27 PM
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!!
SimplePortal 2.3.5 © 2008-2012, SimplePortal