Pure-JS Maxmod soundbank compiler for GBA - a faithful port of devkitPro mmutil. Parses .xm/.mod/.it/.s3m and emits a Maxmod MAS soundbank (.bin + .h) you link into a GBA ROM and play with mmStart(). No native binary, no devkitPro.
Pure-JS Maxmod soundbank compiler for the GBA - a faithful port of devkitPro
mmutil. Parses a tracker module (.xm / .mod / .it / .s3m) and emits a Maxmod
MAS soundbank (.bin + .h) you link into a GBA ROM and play with the Maxmod
runtime (mmStart()). No native binary, no devkitPro.
Output is byte-for-byte identical to real mmutil (verified on .xm/.mod/.it).
import { soundbankFromModule } from "romdev-maxmod";const { bin, header } = soundbankFromModule(xmBytes, { name: "mysong" });// bin → the soundbank .bin (link as your soundbank_bin)// header → "#define MOD_MYSONG 0\n#define MSL_NSONGS 1 ..." (the .h)
API
soundbankFromModule(bytes, { name?, format? }) → { bin, header }. One-call
compile; sniffs the module format from content (override with format).
parseModule(bytes, opts?) → the parsed MAS module model.