On this page we look at how abc notation actually works, including an overview of the parts of an abc document. Then we look at the tune header; on the next page we'll look at the body of the tune.
This is a very quick introduction to the workings of abc notation. For more detail, check out the abc Home Page, maintained by its inventor Chris Walshaw.
We'll use the tune Smash the Windows as an example for this introduction.
abc Notation ◆ Intro ◆ Tune Header ◆ Tune Body ◆ Formatting
Tune Home ◆ The Tunes ◆ Tune List
abc: Help File ◆ Reference Card
Learning Tunes (By Ear & Reading)
Before looking at the tune header I want to give you the big picture of abc tunes.
The music code. The abc code for the melody and chords are found in the tune body. Sometimes formatting commands are found there too, e.g. to indicate a key change.
Tune characteristics & formatting. There’s more to the music than melody and chords. The software needs to know tune characteristics such as key and time signature. It also needs to know how we want it drawn (e.g. font and font size for the title, composer and other type, spacing between staff systems, margins, and more. This is done in the headers. There are a few types of headers, each serving different functions.
These days many people get tunes from abc search web sites such as JC's Tune Finder or the search page of abc Home Page. These are great because they let you find tunes easily and make it easy to compare different transcripts of a tune. But the abc code may not be complete. As the file headers are separate from the code for a tune they are almost certainly going to be lost.
For that reason, on this web site the Headers Page has the information needed to recreate the headers, and all tunes contain links to that page in the tune header which, as part of the tune, shouldn’t get lost.
Now let's take a closer look at the tune body and header. We'll start with the tune header.
An abc tune starts out with the tune header which gives the title, key and other important information. That might take the following form:
X:1
T:Smash The Windows
T:Roaring Jelly
M:6/8
L:1/8
R:Jig
K:D
Here's what that means:
The abc standard designates the K: field to be the end of the tune header.
There are many other characteristics that can be included optionally in the header; it's even possible to add Postscript commands for greater control over the output.
On the next page we look at the tune body, which is where the actual tune lives. Click on the "Next Page" button for discussion of the tune body.
The NH Old-Time Fiddle Website covers a variety of topics related to traditional music and dance of New Hampshire and surrounding areas.
Designed & Edited by Peter Yarensky
Contact & About Page + Site News
Use the Menu (upper left) to navigate. Here are the main topics covered on this web site.
Menu