# Phase 0 status (restarted repository) Date: 2026-11-19. Restart point `b1e2dcf`; see [restart.md](restart.md). ## Done - The specification rewritten from permitted sources only: [registers.md](registers.md), [phase-generator.md](phase-generator.md), [operators.md](operators.md), [envelope.md](envelope.md), [lfo-noise.md](lfo-noise.md), [timers-and-bus.md](timers-and-bus.md), [output.md](output.md), [ym2164.md](ym2164.md); every rule tagged (DIE: IKAOPM 08a5b40; DOC: Yamaha's manual and catalogue; OBSERVED: the closed-box referee, ymfm). - The frequency and detune validation replaced: `scripts/referee_freq.py` measures through `opm.h` only (no program includes the model's `.c` or calls past its header). - New closed-box tools: `scripts/referee_survey.py`; IKAOPM's ROMs expanded by `scripts/ikaopm_tables.py`; `opm_ref` takes an output stride. - [validation.md](validation.md), [handoff-brief.md](handoff-brief.md), [start-here.md](start-here.md), [README.md](README.md), the top-level README, NOTICE, [provenance.md](provenance.md). ## Measured (closed box, Nuked-OPM f209e6e, through opm.h) | What | Result | | --- | --- | | Phase step, every KC x KF | 8192 of 8192 equal to IKAOPM's ROM and rules (and to ymfm's table) | | DT1, 32 KC' x 2 KF x DT1 1-7 | 448 of 448 equal to IKAOPM's rule (and ymfm); 428 of 448 equal to the manual's Fig. 2.6 (C3) | | Sine and exponent tables (IKAOPM against ymfm, no run) | 256 of 256 each | | LFO, LFRQ 0x0F against 0x1F | ratio 2.0000: the manual, not IKAOPM's 7/8 (C6) | | CSM at the timer A start | keys on (6 samples after LOAD), as the die reading says | | YM2164 mode | same sound on four streams; timer B half rate; CT lines swapped | | SO words | right under SH1, left under SH2, as Fig. 2.17 | | Carried runs (2026-11-11 to 13) | timers, BUSY, frame, noise, LFO, envelope, KON latch, MAME tap replays ([validation.md](validation.md)) | ## Owed - The core (rungs 0-6, [handoff-brief.md](handoff-brief.md)). - IKAOPM under Verilator before rung 4 (decision 5): votes on C5, C6, the CON delays. - Pin-level offsets against the referee (U2, U6) at rungs 1-2. - The CON previous-sample column and the exact noise sequence (C8) against the referee at rung 3. - DT2 and PM against the referee at every KC/KF (rung 1, 3). - The manual's attack/decay time table (Fig. 2.11) read from the scan. - The YM2164 machines' drivers checked for licence and wiring; any YM2164 document. - Unknowns U1-U7 and contradictions C1-C8 as listed in the handoff brief.