Skip to content
altstrument

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.

by Jeremy Whitlock

DormantSource: openApache-2.0
Top-down view of the Dirtywave M8 tracker (cropped from the product photo)
Photo: Dirtywave, manufacturer product image, via dirtywave.com
Distribution
Prebuilt image you flash yourself
Source
github.com https://github.com/whitlockjc/m8-js
Homepage
github.com https://github.com/whitlockjc/m8-js

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

m8-js version history
VersionDateNotes
v0.2.12023-03-23
Git tag; no GitHub release page. Adds a default view command.
v0.2.02023-03-23
Git tag; no GitHub release page.
v0.1.02022-10-05
Git tag; no GitHub release page.

Back to M8 Headless