User login

To prevent automated spam submissions leave this field empty.

abc2abc Linux Command Reference Example: abc2abc command man page


abc2abc - a simple abc checker/re-formatter/transposer

abc2abc file [ -s ] [ -n ] [ -b ] [ -r ] [ -e ] [ -t semitones ] [ -nda ] [ -u ] [ -d ] [ -v ] [ -v] [-nokeys] [ -nokeyf] [ -usekey(sharps/flats)] [ -OCC ]

abc2abc is a simple abc checker/re-formatter/transposer. It will check whether the file given on the command line obeys basic abc syntax.

If you want to check an abc tune, it is recommended that you use abc2midi with the -c option. This performs extra checks that abc2abc does not do.

The output of abc2abc goes to standard output. Use redirection to save it to a file.


Rework spacing in the file (which affects how notes are beamed together when the music is printed out). This option does not appear to be working correctly.
-n X
Reformats the abc file with line breaks every X bars.
Don't do bar checking.
Don't do repeat checking.
Don't report errors.
-t n
Transpose tune by n semitones. This function will also work with K: none or one of -nokeys or -nokeyf. If a voice is assigned to channel 10 (drum channel) using a %%MIDI channel 10 command, then this voice is never transposed.
Convert double accidentals in guitar chord to another chord though strictly not correct.
Update notation; the older notation + + for chords is replaced by [] and s s for slurs is replaced by ().
Accept the old notation for chord. Normally this is turned off, since it conflicts with abc draft standard version 2.0 for decorations (eg. +crescendo(+).
Re-notate the tune with all note lengths doubled. The unit length specified by the L: field command is halved (e.g. L:1/8 to L:1/16).
Re-notate the tune with all note lengths halved. The unit length specified by the L: field command is doubled (e.g. L:1/8 to L:1/4).
Prints version number and exits.
-V X
For multivoiced abc files (i.e. contains V: field commands), only voice X is copied.
-X n
For a file containing many tunes, the X: reference numbers are renumbered sequentially starting from number n.
No key signature will be assumed. Instead, sharps and naturals will be placed wherever they are needed.
No key signature will be assumed. Instead, flats and naturals will be placed wherever they are needed.
-usekey " sf
This will force abc2abc to output the notes in the key signature keys[sf] where sf specifies the number of flats (-negative) or sharps (+positive) in the key signature. It is a number between -5 and +5 inclusive.
* Normally abc2abc will convert the deprecated notation for decorations (eg. !ppp!) to the abc version 2.0 draft standard (eg. +ppp+). If you do not wish to change to this standard include the -OCC flag.
See Also

abcmtex(1), abc2midi(1), midi2abc(1), mftext(1)

This manual page was written by Anselm Lingnau and is now supported by Seymour Shlien for the GNU/Linux system.

by Susan White on Mon, 10/18/2010 - 07:56

Recent Posts


Are you excited for Avatar 2?
I already dyed my skin blue in anticipation!
I think I'll wait for the reviews
I prefer movies about puppies and kittens!
Total votes: 5994

Random image

Dental hygienist defined