m8-js
Tool for M8 Headless (Dirtywave)
JavaScript library and m8 command-line tool that read, edit and write M8 song, instrument, scale and theme files.

- Distribution
- Prebuilt image you flash yourself
- Source
- github.com https://github.com/whitlockjc/m8-js
- Homepage
- github.com https://github.com/whitlockjc/m8-js
- converter
- sdk
- scripting
- utility
- open-source
Description
m8-js parses the M8's binary file formats and exposes songs, instruments, scales and themes as JavaScript objects that can be changed and written back to disk. The m8 command prints songs, instruments, scales and themes in a readable form, shows chains, phrases, tables, grooves, the mixer, effects and MIDI settings, and converts files to and from JSON. Bytes the author has not decoded are kept when a loaded file is written back. The format was worked out from a community gist, a hex editor and help from the M8 Discord, and the project says it is meant for utilities and extra features, not as another editor.
Install notes
Install from npm with npm install m8-js --global to get the m8 command, or clone the repository and run bin/m8 after npm install. Work on copies of your files: the last release is from March 2023, so files saved by newer M8 firmware may not be fully covered.
Version history
| Version | Date | Notes |
|---|---|---|
| v0.2.1 | 2023-03-23 | Git tag; no GitHub release page. Adds a default view command. |
| v0.2.0 | 2023-03-23 | Git tag; no GitHub release page. |
| v0.1.0 | 2022-10-05 | Git tag; no GitHub release page. |