# msm6295-python The OKI MSM6295, four-voice 4-bit ADPCM playback from a sample ROM, as a stand-alone pure-Python chip core for the family's arcade boards: first `cps1-python`, later many of the 2,743 machines that use the chip in MAME 0.285. **Status: Phase 0 complete (2026-11-12). No emulator code yet.** This repository holds the research and the brief the core will be built from: - [docs/start-here.md](docs/start-here.md): the chip on one page, and the reading order. - [docs/handoff-brief.md](docs/handoff-brief.md): scope, contract, unknowns, contradictions, the ladder of rungs, open decisions. - [docs/README.md](docs/README.md): the index of every document. ## Layout docs/ the documents (index in docs/README.md) scripts/ fetch_references.py every reference, pinned by commit or SHA-256 mame_census.py which MAME machines use the chip rom_census.py the local sample ROMs and their phrase tables mame_oki_tap.py/.lua log a CPS-1 program's accesses to the chip in MAME reference/ fetched material (ignored, never committed) trash/ things set aside instead of deleted (ignored) ## Getting the references python3 -I scripts/fetch_references.py # fetch what is missing python3 -I scripts/fetch_references.py --verify # check what is there About 157 MB: OKI's 1987 and 1994 voice synthesis data books, Dialogic's ADPCM note, OKI's data sheet (the copy in jotego's jt6295; jt6295 itself and FinalBurn Neo are closed boxes, not fetched since 2026-11-24), the MAME 0.285 and libvgm sources of the chip (BSD-3, readable), and Artemio Urbina's CPS-1 board recordings. `--sf2ud` also fetches an MDFourier test set that contains Capcom ROMs; it is opt-in. ## Python Python 3.11 or newer (the newest PyPy supports); PyPy must work. The scripts use the standard library only and are run with `python3 -I`. MAME 0.285 is at `/usr/games/mame`; `ffmpeg` decodes the recordings. ## Licence MIT (see `LICENSE`). Fetched references keep their own licences ([docs/validation.md](docs/validation.md)) and are never committed.