# Sound: discrete circuits and one SN76477 ## What the board has No sound CPU and no programmable sound chip. The program sets bits on ports 3 and 5 (start-here.md); each bit gates one analog circuit on the game and sound board: | Bit | Sound | Source | | --- | --- | --- | | port 3 bit 0 | UFO (repeats while set) | CA | | port 3 bit 1 | shot | CA | | port 3 bit 2 | base destroyed | CA | | port 3 bit 3 | invader destroyed | CA | | port 3 bit 4 | extra base | CA | | port 3 bit 5 | amplifier enable (mutes everything when clear) | CA | | port 5 bits 0-3 | the four fleet-movement notes | CA | | port 5 bit 4 | UFO destroyed | CA | Parts on Taito's SVN00003 game board (TSCH pp. 1, 4; DOC): one **TI SN76477** complex sound generator, an **NE556A** dual timer, seven **LM3900** quad Norton op-amps, an **LM377** power amplifier, a **CD4006A** 18-stage shift register with a **CD4030** quad XOR (the usual way to make a pseudo-random noise source from a shift register; the schematic tells which taps: U6), and resistors and capacitors listed by value on the same pages. Which circuit makes which sound is to be traced from TSCH pp. 12-14 (U7). ## What MAME 0.285 does (closed box) - `invaders`, `sitv`, `sisv`: a "Taito Space Invaders Audio" sound board device with MAME's **discrete** sound system and an **SN76477** model (`-listdevices`; OBSERVED). There is no netlist model for Space Invaders in MAME 0.285: the `midw8080` directory holds netlists only for **Gun Fight** and **280-ZZZAP** (`nl_gunfight.cpp`, `nl_280zzzap.cpp`; Colin Douglas Howell; `license:CC0-1.0`, read 2026-11-26 from MAME tag `mame0285`). Laguna Racer also uses a netlist device (census). - 56 of the 167 sibling machines use **samples** (recordings) for some sounds: Space Invaders Part II, Balloon Bomber, Indian Battle and 53 others share the `invaders` sample set, Lunar Rescue has its own (census). The sample sets are not in the MAME romset collection; a FinalBurn Neo samples folder in the source mirror holds an `invaders.zip` of ten WAV files (SHA-1 `e32fd7f9b2a948537e4ecd6341824427fd966e83`, 167,893 bytes): recordings of unknown provenance and licence, never shipped. - The discrete and SN76477 sources in MAME (`sound/discrete.cpp`, `sound/sn76477.cpp`, `midw8080/mw8080bw_a.cpp`, `8080bw_a.cpp`) carry `license:BSD-3-Clause` (read 2026-11-26), so their facts (component values, circuit topology) could be cited with notice; tonight's rule keeps MAME closed, so nothing was opened. ## The SN76477 A single analog-digital chip (noise generator, super-low-frequency oscillator, VCO, one-shot, envelope, mixer) configured almost entirely by external resistors and capacitors. In this board it makes the UFO sound (CA's table and MAME's device list agree that there is one). **No datasheet was found on a host we may fetch from** (archive.org searches for "SN76477" and "76477" returned nothing relevant; bitsavers refuses automated clients: [sources.md](sources.md)). Its other family users: none today (MAME lists it in 111 of these 167 machines, and in other arcade boards outside the family). It stays in the board (chip rule) behind a pin-shaped class. ## Strategy (open decision 2) Three options, as the brief asked: 1. **Samples.** Not available to ship (recordings of unknown licence; makers' sounds), and a sample cannot follow the circuit's state (the UFO repeats while its bit is held; the fleet notes are cut by the next note). Rejected as the specification; at most a player-supplied sample pack in a host, as MAME does. 2. **Our own circuit model ("our own netlist").** Transcribe each sound circuit from Taito's schematic (component values from TSCH's parts lists, topology from its logic pages) into a small nodal model the board steps at a fixed audio rate, with the SN76477 as a behavioural block from its datasheet once one is found. This is the specification-grade answer: every value cites the schematic. The Gun Fight and 280-ZZZAP netlists in MAME are CC0, so for those two siblings the circuit description could even be taken with credit; for Space Invaders there is none, and none would be copied anyway. 3. **A named concession.** Event-driven synthesis (a tone or noise burst with a fitted envelope per bit) that sounds right but is not the circuit: allowed only as a concession switch in a turbo tier, off by default, with its recorded cost. **Recommendation:** option 2 in this repository, built after the picture is exact (milestone 4), with the family's "sound good enough" rule applied: a circuit model at a modest internal rate, FITTED where the schematic is unreadable, compared by ear and by spectrum with MAME's discrete output (a detector). Until then the board records the port-3/port-5 bit stream with cycle times, which is the channel the sound domain reads.