How to Write, Play and Export Folk Tunes in ABC Notation
Type a tune in ABC notation, see the score as you type, play it with repeats, transpose it for your instrument and save PDF, MIDI or MusicXML.

Folk musicians have swapped tunes as plain text for decades. A reel that would take a page of staff notation fits in a few lines of ABC, and it survives being pasted into an email or a forum post. The catch is that reading ABC fluently takes practice, and hearing a tune you have never met needs software. The ABC Notation Editor and Player shows the score as you type, plays it back and saves it in the formats other music programs use.
The shape of an ABC tune
Every tune starts with a few header lines. X: is the reference number, T: the title, M: the metre such as 6/8 or 4/4, L: the default note length, usually 1/8, Q: the tempo and K: the key, which can include a mode like Dorian or Mixolydian. After the K: line come the notes. Capital letters from C to B are the octave starting at middle C, lower-case letters the octave above, and an apostrophe or comma moves a note up or down another octave. A number after a note makes it longer, a slash makes it shorter. Bar lines are vertical strokes, |: and :| mark repeats, and |1 and :|2 mark first and second endings. Chord names in double quotes appear above the staff.
Typing and seeing
Load an example to start, or paste a tune from a collection. The first time, press Load it to fetch the abcjs score renderer, a free library of about 480 KB. From then on the score redraws a moment after you stop typing, and any notation problems appear in a list under it, which makes typos easy to find. The text, with undo and redo, is kept in your browser between visits.
Listening
Press Play. The editor reads the tune itself, unfolds the repeats and endings in the right order, applies the key signature and any sharps or flats written in a bar, and plays the notes through a small built-in synthesiser. Pick a sound such as piano, organ, strings or guitar, and slow the tempo down to learn a tricky passage. Tunes written for several voices play all parts together. Ornaments like rolls and grace notes are drawn but not played, so the rhythm stays clean when practising slowly.
Transposing
A tune written in D may suit a fiddle and not a whistle in C or a singer with a lower voice. The transpose buttons move the tune a semitone or an octave at a time. They rewrite the ABC text with a new key line and adjusted notes, so what you save afterwards is a proper tune in the new key, not just a change of playback pitch. Undo takes you back if you go too far.
Exporting
Save the .abc text to share it in the folk tradition. Save SVG for a website or a PDF on A4 for the music stand. Save MIDI to play the tune in a sequencer or practice app. Save MusicXML to carry on in MuseScore, Sibelius, Finale or Dorico, where the notes, chord symbols, key, metre, tempo and repeats come across; lyrics and decorations do not.
Good habits
Keep one tune per file, because only the first X: tune in a file is played and exported. Write the L: line even when it matches the default, which avoids surprises when tunes are copied between collections. When a tune comes from someone else, keep the source in a C: or a comment line so the next player knows where it came from.
Nothing is uploaded. The tune, its playback and every export are made on your device.



