abcMIDI is a package of programs written in C for handling abc music notation files. The software was created by James Allwright in the early 1990 and presently maintained by Seymour Shlien. It initially included the following programs:
- abc2midi for converting an abc file to a midi file,
- abc2abc for transposing abc notation to another key signature,
- midi2abc for creating an abc file from a midi file,
- yaps for producing a PostScript file displaying the abc file in common music notation and,
- mftext for creating a text representation of a midi file.
Seymour added two more programs:
- abcmatch for finding common elements in a collection of abc tunes and,
- midicopy for copying parts of a midi file to a new midi file.
Yaps has been superceded by Jef Moine abcm2ps and abc2svg programs. Midi2abc has been expanded to include mftext and various other features for supporting the runabc application. Abc2midi has numerous new features that are described in its own web page abc2midi guide.
Components of the abcMIDI package are parts of numerous applications for creating and editing abc files. Compilations of these components for various operating systems can be found on The ABC Plus Project web page.
The latest version of the abcMIDI package supported by James Allwright can be found can be found here. More recent versions can be found on sourceforge and on the runabc web page.
The traditional build uses autoconf:
./configure
make
sudo make installA CMake build system is available alongside the legacy one, with presets for common configurations:
# Configure and build (pick a preset: default, debug, sanitize)
cmake --preset default
cmake --build --preset default
# Install
cmake --install build/defaultAvailable presets:
| Preset | Build type | Description |
|---|---|---|
default |
Release | Optimized build |
debug |
Debug | Debug symbols, no optimization |
sanitize |
Debug | Debug + AddressSanitizer + UndefinedBehaviorSanitizer |
The CMake build generates compile_commands.json for use with
clangd and other LSP-based editors.
The CMake build includes a test suite covering all 8 programs:
- Smoke tests verify each binary runs cleanly with
-ver. - Golden-file tests run each program on a sample input and compare the
(normalized) output to a checked-in reference. Binary MIDI outputs are
piped through
mftextto produce diffable text. Volatile lines (version banners, dates, temporary paths) are stripped before comparison.
# Run all tests
ctest --preset debug
# Run only golden-file tests / only smoke tests
ctest --preset debug -L golden
ctest --preset debug -L smokeTo regenerate the golden files after an intentional behavioural change, review the diff, then commit:
cmake --build build/debug --target update-golden
git diff tests/golden/The package release date in the VERSION file is the single source of
truth for the package version. It is read by CMakeLists.txt (into
ABCMIDI_VERSION) and spliced into configure.ac's AC_INIT via
m4_esyscmd_s at autoreconf time. Each individual program also keeps its
own #define VERSION "<n.nn> <date> <toolname>" in its .c file
(e.g. store.c for abc2midi); these are bumped per-tool when that
tool's behaviour changes.
To cut a release:
- Update the
VERSIONfile (e.g.April 25 2026). - For each tool whose behaviour changed since the last release, bump
its
#define VERSIONstring in the corresponding source file. - Run
autoreconf -fso the committedconfigurepicks up the newAC_INITarguments. The CMake build does not need this step — it readsVERSIONdirectly at configure time. - Run
ctest --preset debugand, if a golden-file test fails because of an intentional output change, regenerate withcmake --build build/debug --target update-goldenand review the diff. - Append an entry to
doc/CHANGESand update the per-tool version listing at the top ofdoc/readme.txt. - Commit and tag.