# Seating Plan

Seating Plan is a small local server that turns every phone in a room into one seat of a choir: seat n holds one steady sine at exactly n times the key of the house (195.998 Hz, the equal-tempered G3, by default), seats run from 2 upward, and the plan on the projector shows who sits where, each seat's frequency and how far it lies from the nearest piano key. Run `bun serve.ts` in this folder (no install, no packages; `PORT=9000 bun serve.ts` for another port), open the printed `http://localhost:8808/plan` on the laptop and put it on the projector, and anyone on the same Wi-Fi types the large address from the plan into a phone and taps "Take a seat". The real input is the room itself: the phones that join, the key the host sets on the plan (only from the laptop the server runs on), the machine's network interfaces and its clock. `bun check.ts` runs the pure rules, `bun check.ts --live` runs the server end to end with real sockets on port 18808, and `bun check.ts --hold N` takes N seats for 60 s; the browser checks (`uv run --with playwright python qa/browser.py`, which needs Playwright Chromium installed once with `uv run --with playwright playwright install chromium`) and the chromium command-line checks (`CHROME=/path/to/chromium bash qa/cli.sh`) are QA tooling only and are not needed to run it.

## For the host

- Volume: phones at about half volume is enough; the laptop itself stays silent.
- Screen: everyone keeps the page open with the screen on; a locked phone goes Silent and resumes on a tap.
- Wi-Fi: the laptop and the phones must be on the same network.
- If a phone cannot open the address, the network is keeping devices apart: start a phone hotspot, join the laptop and the phones to it, and restart the server.

## The owner's listening test

Not yet run. Four phones at the default key, one room, three listeners not told what to listen for; each hums the lowest note they hear, then the laptop plays the key for 3 s from `spectrum.html?ref` and the listener says whether it matched. Pass if two of three match. Then the same with two phones.

| run | phones used | room | what each listener hummed | matched |
|---|---|---|---|---|
| four phones | | | | |
| two phones | | | | |

## Colophon

Catalogue no. 067. Printed on cream stock by the house, one evening at a time, on whatever laptop is nearest the stage. Fifteen seats at the default key. Tickets are not valid for any other performance.
