diff --git a/.gitignore b/.gitignore
index 5294949..3def991 100644
--- a/.gitignore
+++ b/.gitignore
@@ -42,3 +42,6 @@ build/
.DS_Store
.idea/
.claude/
+
+# Generated demo recording (intermediate for docs/demo.gif; regenerate with scripts/demo_gif.py)
+docs/demo.cast
diff --git a/README.md b/README.md
index 9b9b136..cc8d4fe 100644
--- a/README.md
+++ b/README.md
@@ -7,6 +7,12 @@
Convert vintage sampler CD-ROM images into uncompressed `.wav` files you can use anywhere. No proprietary disk-mounting software, no dead commercial tools, no dependencies beyond the Python standard library.
+
+
+
+
+The disc above is a synthetic fixture built in code, not a real library ([ADR-0008](docs/adr/0008-no-media-in-the-repo.md)); regenerate the recording with `uv run --with-editable . python scripts/demo_gif.py`.
+
The point is to get these sounds **out of the hardware they were trapped in** — not into a different sampler's format. You get plain WAV: drag it into any DAW, load it in whatever sampler you already own, keep it for the next twenty years.
Thousands of 1990s sample libraries survive only as disc images built for hardware samplers — AKAI S1000/S3000, E-mu, Roland, Ensoniq. They are not ISO 9660: the sampler wrote its own filesystem straight onto the disc, so a modern computer mounts nothing and shows you an unreadable volume. `samplerdisc` reads those filesystems directly out of the image file and writes the samples back out as plain PCM WAV.
diff --git a/docs/demo.cast b/docs/demo.cast
deleted file mode 100644
index 48cc527..0000000
--- a/docs/demo.cast
+++ /dev/null
@@ -1,155 +0,0 @@
-{"version": 2, "width": 82, "height": 30, "env": {"TERM": "xterm-256color", "SHELL": "/bin/zsh"}}
-[0.0, "o", "\u001b[32m$\u001b[0m "]
-[0.045, "o", "s"]
-[0.09, "o", "a"]
-[0.135, "o", "m"]
-[0.18, "o", "p"]
-[0.225, "o", "l"]
-[0.27, "o", "e"]
-[0.315, "o", "r"]
-[0.36, "o", "d"]
-[0.405, "o", "i"]
-[0.45, "o", "s"]
-[0.495, "o", "c"]
-[0.54, "o", " "]
-[0.585, "o", "i"]
-[0.63, "o", "n"]
-[0.675, "o", "f"]
-[0.72, "o", "o"]
-[0.765, "o", " "]
-[0.81, "o", "\""]
-[0.855, "o", "D"]
-[0.9, "o", "e"]
-[0.945, "o", "m"]
-[0.99, "o", "o"]
-[1.035, "o", " "]
-[1.08, "o", "A"]
-[1.125, "o", "K"]
-[1.17, "o", "A"]
-[1.215, "o", "I"]
-[1.26, "o", " "]
-[1.305, "o", "C"]
-[1.35, "o", "D"]
-[1.395, "o", "."]
-[1.44, "o", "n"]
-[1.485, "o", "r"]
-[1.53, "o", "g"]
-[1.575, "o", "\""]
-[1.62, "o", "\r\n"]
-[1.97, "o", "container nrg\r\nsize 524288 bytes (512.0 KB)\r\nsectors 256\r\nfilesystem akai at offset 0\r\n"]
-[3.07, "o", "\u001b[32m$\u001b[0m "]
-[3.115, "o", "s"]
-[3.16, "o", "a"]
-[3.205, "o", "m"]
-[3.25, "o", "p"]
-[3.295, "o", "l"]
-[3.34, "o", "e"]
-[3.385, "o", "r"]
-[3.43, "o", "d"]
-[3.475, "o", "i"]
-[3.52, "o", "s"]
-[3.565, "o", "c"]
-[3.61, "o", " "]
-[3.655, "o", "l"]
-[3.7, "o", "i"]
-[3.745, "o", "s"]
-[3.79, "o", "t"]
-[3.835, "o", " "]
-[3.88, "o", "\""]
-[3.925, "o", "D"]
-[3.97, "o", "e"]
-[4.015, "o", "m"]
-[4.06, "o", "o"]
-[4.105, "o", " "]
-[4.15, "o", "A"]
-[4.195, "o", "K"]
-[4.24, "o", "A"]
-[4.285, "o", "I"]
-[4.33, "o", " "]
-[4.375, "o", "C"]
-[4.42, "o", "D"]
-[4.465, "o", "."]
-[4.51, "o", "n"]
-[4.555, "o", "r"]
-[4.6, "o", "g"]
-[4.645, "o", "\""]
-[4.69, "o", "\r\n"]
-[5.04, "o", "1 partition\r\n\r\npartition 1\r\n SYNTH BASS (block 1, 2 files)\r\n PIANO C3 sample 342 bytes\r\n BASS PICK sample 310 bytes\r\n DRUM KIT 1 (block 4, 3 files)\r\n KICK 1 sample 278 bytes\r\n SNARE 1 sample 294 bytes\r\n HIHAT CL sample 246 bytes\r\n\r\n2 volumes, 5 sample\r\n"]
-[6.14, "o", "\u001b[32m$\u001b[0m "]
-[6.185, "o", "s"]
-[6.23, "o", "a"]
-[6.275, "o", "m"]
-[6.32, "o", "p"]
-[6.365, "o", "l"]
-[6.41, "o", "e"]
-[6.455, "o", "r"]
-[6.5, "o", "d"]
-[6.545, "o", "i"]
-[6.59, "o", "s"]
-[6.635, "o", "c"]
-[6.68, "o", " "]
-[6.725, "o", "e"]
-[6.77, "o", "x"]
-[6.815, "o", "t"]
-[6.86, "o", "r"]
-[6.905, "o", "a"]
-[6.95, "o", "c"]
-[6.995, "o", "t"]
-[7.04, "o", " "]
-[7.085, "o", "\""]
-[7.13, "o", "D"]
-[7.175, "o", "e"]
-[7.22, "o", "m"]
-[7.265, "o", "o"]
-[7.31, "o", " "]
-[7.355, "o", "A"]
-[7.4, "o", "K"]
-[7.445, "o", "A"]
-[7.49, "o", "I"]
-[7.535, "o", " "]
-[7.58, "o", "C"]
-[7.625, "o", "D"]
-[7.67, "o", "."]
-[7.715, "o", "n"]
-[7.76, "o", "r"]
-[7.805, "o", "g"]
-[7.85, "o", "\""]
-[7.895, "o", " "]
-[7.94, "o", "o"]
-[7.985, "o", "u"]
-[8.03, "o", "t"]
-[8.075, "o", "\r\n"]
-[8.425, "o", "wrote 5 WAV files to out\r\n"]
-[9.525, "o", "\u001b[32m$\u001b[0m "]
-[9.57, "o", "f"]
-[9.615, "o", "i"]
-[9.66, "o", "n"]
-[9.705, "o", "d"]
-[9.75, "o", " "]
-[9.795, "o", "o"]
-[9.84, "o", "u"]
-[9.885, "o", "t"]
-[9.93, "o", " "]
-[9.975, "o", "-"]
-[10.02, "o", "n"]
-[10.065, "o", "a"]
-[10.11, "o", "m"]
-[10.155, "o", "e"]
-[10.2, "o", " "]
-[10.245, "o", "'"]
-[10.29, "o", "*"]
-[10.335, "o", "."]
-[10.38, "o", "w"]
-[10.425, "o", "a"]
-[10.47, "o", "v"]
-[10.515, "o", "'"]
-[10.56, "o", " "]
-[10.605, "o", "|"]
-[10.65, "o", " "]
-[10.695, "o", "s"]
-[10.74, "o", "o"]
-[10.785, "o", "r"]
-[10.83, "o", "t"]
-[10.875, "o", "\r\n"]
-[11.225, "o", "out/partition-1/DRUM KIT 1/HIHAT CL.wav\r\nout/partition-1/DRUM KIT 1/KICK 1.wav\r\nout/partition-1/DRUM KIT 1/SNARE 1.wav\r\nout/partition-1/SYNTH BASS/BASS PICK.wav\r\nout/partition-1/SYNTH BASS/PIANO C3.wav\r\n"]
-[14.325, "o", ""]
diff --git a/docs/demo.gif b/docs/demo.gif
new file mode 100644
index 0000000..406e10d
Binary files /dev/null and b/docs/demo.gif differ
diff --git a/scripts/demo_gif.py b/scripts/demo_gif.py
new file mode 100644
index 0000000..4caa2bf
--- /dev/null
+++ b/scripts/demo_gif.py
@@ -0,0 +1,186 @@
+#!/usr/bin/env python3
+"""Regenerate the README demo: build a synthetic AKAI disc, run the tool against
+it, and render the session to ``docs/demo.gif``.
+
+Nothing here comes off a real disc (ADR-0008). The disc is built from the same
+synthetic fixtures the tests use, the commands are the real CLI run in-process,
+and their output is captured verbatim -- only the *timing* (the typing effect
+and the pauses) is synthesised, exactly what a live recording's timing would be.
+
+The recording is written as an asciicast v2 ``.cast`` and rendered to GIF with
+``agg`` (https://docs.asciinema.org/manual/agg/, ``brew install agg``). If agg
+is not installed, the ``.cast`` is still written and the command to render it is
+printed.
+
+ uv run --with-editable . python scripts/demo_gif.py
+"""
+
+from __future__ import annotations
+
+import io
+import json
+import pathlib
+import shutil
+import subprocess
+import sys
+import tempfile
+from contextlib import redirect_stdout
+
+REPO = pathlib.Path(__file__).resolve().parent.parent
+sys.path.insert(0, str(REPO))
+
+from tests import fixtures # noqa: E402
+
+from samplerdisc.cli import main # noqa: E402
+
+DISC = "Demo AKAI CD.nrg"
+COLS, ROWS = 82, 30
+
+# Typing and pacing, in seconds. A demo that types too fast reads as a dump; too
+# slow and nobody waits for it.
+KEYSTROKE = 0.045
+AFTER_ENTER = 0.35
+AFTER_OUTPUT = 1.1
+PROMPT = "\x1b[32m$\x1b[0m " # a green $, the one bit of colour
+
+
+def build_disc(directory: pathlib.Path) -> pathlib.Path:
+ """A small AKAI disc of invented samples, wrapped in an NRG container."""
+
+ def sample(name: str, **kw: object) -> bytes:
+ return fixtures.akai_sample(name, **kw)
+
+ volumes = [
+ (
+ "SYNTH BASS",
+ [
+ ("PIANO C3", sample("PIANO C3", rate=44100, words=96, pitch=60, loop=(8, 88))),
+ ("BASS PICK", sample("BASS PICK", rate=44100, words=80, pitch=48)),
+ ],
+ ),
+ (
+ "DRUM KIT 1",
+ [
+ ("KICK 1", sample("KICK 1", rate=44100, words=64, pitch=36)),
+ ("SNARE 1", sample("SNARE 1", rate=44100, words=72, pitch=38)),
+ ("HIHAT CL", sample("HIHAT CL", rate=22050, words=48, pitch=42)),
+ ],
+ ),
+ ]
+ volumes = [(n, [(fn, 0x73, len(p), p) for fn, p in files]) for n, files in volumes]
+ disc = fixtures.akai_disc([fixtures.akai_partition(volumes, blocks_total=64)])
+ path = directory / DISC
+ path.write_bytes(fixtures.make_nrg(disc))
+ return path
+
+
+def run(argv: list[str]) -> str:
+ """The real CLI, in-process, with its stdout captured verbatim."""
+ buffer = io.StringIO()
+ with redirect_stdout(buffer):
+ code = main(argv)
+ if code != 0:
+ raise SystemExit(f"{' '.join(argv)} exited {code}")
+ return buffer.getvalue()
+
+
+def wav_tree(out: pathlib.Path) -> str:
+ return "\n".join(str(p.relative_to(out.parent)) for p in sorted(out.rglob("*.wav"))) + "\n"
+
+
+class Cast:
+ """An asciicast v2 writer with a keystroke-by-keystroke typing effect."""
+
+ def __init__(self, cols: int, rows: int) -> None:
+ self.cols, self.rows = cols, rows
+ self.events: list[tuple[float, str, str]] = []
+ self.t = 0.0
+
+ def emit(self, text: str, dt: float = 0.0) -> None:
+ self.t += dt
+ self.events.append((round(self.t, 3), "o", text))
+
+ def command(self, shown: str) -> None:
+ self.emit(PROMPT)
+ for ch in shown:
+ self.emit(ch, KEYSTROKE)
+ self.emit("\r\n", KEYSTROKE)
+
+ def output(self, text: str) -> None:
+ self.emit(text.replace("\n", "\r\n"), AFTER_ENTER)
+ self.t += AFTER_OUTPUT
+
+ def write(self, path: pathlib.Path) -> None:
+ # No wall-clock timestamp: it does not affect rendering and its only
+ # effect would be to churn the file on every regeneration.
+ header = {
+ "version": 2,
+ "width": self.cols,
+ "height": self.rows,
+ "env": {"TERM": "xterm-256color", "SHELL": "/bin/zsh"},
+ }
+ with path.open("w", encoding="utf-8") as handle:
+ handle.write(json.dumps(header) + "\n")
+ for stamp, kind, data in self.events:
+ handle.write(json.dumps([stamp, kind, data]) + "\n")
+ # A last breath so the final frame is not cut off.
+ handle.write(json.dumps([round(self.t + 2.0, 3), "o", ""]) + "\n")
+
+
+def main_() -> None:
+ docs = REPO / "docs"
+ cast_path = docs / "demo.cast"
+ gif_path = docs / "demo.gif"
+
+ with tempfile.TemporaryDirectory() as tmp:
+ work = pathlib.Path(tmp)
+ build_disc(work)
+ # Run from the disc's directory so the recording shows a bare filename.
+ cwd = pathlib.Path.cwd()
+ try:
+ import os
+
+ os.chdir(work)
+ info = run(["info", DISC])
+ listing = run(["list", DISC])
+ extract = run(["extract", DISC, "out"])
+ tree = wav_tree(work / "out")
+ finally:
+ os.chdir(cwd)
+
+ cast = Cast(COLS, ROWS)
+ cast.command(f'samplerdisc info "{DISC}"')
+ cast.output(info)
+ cast.command(f'samplerdisc list "{DISC}"')
+ cast.output(listing)
+ cast.command(f'samplerdisc extract "{DISC}" out')
+ cast.output(extract)
+ cast.command("find out -name '*.wav' | sort")
+ cast.output(tree)
+ cast.write(cast_path)
+ print(f"wrote {cast_path}")
+
+ agg = shutil.which("agg")
+ if not agg:
+ print("agg not found (brew install agg); to render the GIF yourself:")
+ print(f" agg --theme asciinema --font-size 20 {cast_path} {gif_path}")
+ return
+ subprocess.run(
+ [
+ agg,
+ "--theme",
+ "asciinema",
+ "--font-size",
+ "20",
+ "--speed",
+ "1.0",
+ str(cast_path),
+ str(gif_path),
+ ],
+ check=True,
+ )
+ print(f"wrote {gif_path} ({gif_path.stat().st_size} bytes)")
+
+
+if __name__ == "__main__":
+ main_()