# s-dsp-python (staging) Phase 0 groundwork for the SNES **S-DSP** (the S-SMP's sound generator: eight BRR voices, Gaussian interpolation, ADSR/GAIN envelopes, pitch modulation, noise, an echo with an 8-tap FIR, 32 kHz stereo out). **This is not a core repository.** Aubrey decided on 2026-10-21 that the S-DSP stays inside the board, `snes-python`, as an in-board module behind a pin-shaped interface with an import-boundary test. This directory is a staging area whose files drop into the board: | Here | In `snes-python` | | --- | --- | | `docs/dsp/*.md` | `docs/dsp/` | | `scripts/dsp_*.py`, `scripts/dsp_pinned_*.json` | `scripts/` | | `reference/dsp/` (ignored, fetched) | `reference/dsp/` | The referee's driver, `spc_dump.cpp`, is linked with snes_spc (LGPL-2.1), so it is a GPL tool kept outside both repositories since 2026-11-22. Since 2026-11-24 the referee is that tool's own build, snes-spc 0.1.0: `"$EMU_TOOLS_GPL/tools/snes-spc/build.sh"` fetches the pinned archive into emu-tools-gpl and builds `$EMU_TOOLS_GPL/tools/snes-spc/build/spc_dump`, which this repository runs (`EMU_TOOLS_GPL` names a checkout of emu-tools-gpl). This repository no longer fetches or keeps snes_spc's archive (docs/provenance.md). No module code is here. Local git only; never pushed. **Sources (2026-11-19 rewrite).** The documents are written from anomie's S-DSP document, fullsnes, the SNESdev wiki and the names of blargg's hardware-verified test ROM; the Gaussian table from ares's ISC formula (notice in `scripts/dsp_gauss_formula.py`). blargg's snes_spc (LGPL-2.1) is only a closed-box referee, built unmodified and driven through its documented C API. Provenance: [docs/provenance.md](docs/provenance.md). Start at [docs/dsp/README.md](docs/dsp/README.md). ```text python -I scripts/dsp_fetch_references.py # pinned documents and repositories "$EMU_TOOLS_GPL/tools/snes-spc/build.sh" # snes_spc 0.9.0 as a closed-box referee, built in emu-tools-gpl (LGPL-2.1 combined work, never shipped) python -I scripts/dsp_build_referees.py # checks that build python -I scripts/dsp_make_spc.py reference/dsp/spc/synthetic python -I scripts/dsp_run_referee.py --regs # every synthetic case through the referee python -I scripts/dsp_gauss_formula.py # the Gaussian table from ares's formula, and its hash ``` MIT (see LICENSE); `scripts/dsp_gauss_formula.py` is `MIT AND ISC`. The referee's library is fetched into `reference/` and built there; none of its code is in this repository.