This is a post that would act as documentation for the ABCjs syntax, which would be a good reference site for help on basic syntax.
Please add aswers here with basic examples for ABCjs syntax to make it easier to get into the world of writing music snippets on Music.SE.
Minimal requirement is to start the code block with X:
and also specify key with K:
before starting write the notes.
I also recommend specifying standard note lenght using L:
. Default is eights that would be noted like this: L: 1/8
.
Example:
Code:
X: 1 K: C L: 1/4 ABc
Output:
X: 1
K: C
L: 1/4
ABc
Links to ABCjs references:
- ABCjs.net
- ABCjs quick editor - official editor recommended by ABCjs
- ABCNotation.com examples
- ABCNotation.com blog post on understanding the notation
- Steve Mansfield's ABC Notation Part 1 - with links to a more advanced part
- Steve Mansfield's Proposed Extensions to the ABC Notation - some of those actually seem to be a part of the notation already, the single letter ones.
- ABC specification Documentation for the ABC language.
We also have the formatting sandbox, which you can use to try out things for yourself: