# Context Layer — Movement Capture & Networked Musical Expression

**Packet:** `movement-capture-and-networked-musical-expression`
**Date:** 2026-08-16 · **Method:** `deep-research-foundations`, Research Diamond, 4 parallel live-web lanes
**Repo:** `jgwill/Miadi`, branch `feat/movement-conductor-ep083`, HEAD `79d6c55c`
**Sibling packet:** [`../embodied-research-creation-and-land-based-media/`](../embodied-research-creation-and-land-based-media/) — the artistic half. Neither packet is complete alone.

---

## Shared language

These terms are used in one sense throughout both packets. Where a field uses
the same word differently, the field file says so.

| term | meaning here | where it lives in code |
|---|---|---|
| **frame** | one instant of movement: nine float channels plus the wall-clock instant, the sensor backing, and — for wire-received frames — the observed source endpoint, byte length, OSC address and type-tag string | `packages/movement-conductor/src/frame.ts` |
| **channel contract** | 1–3 user acceleration (gravity removed) x/y/z in **g**; 4–6 rotation rate x/y/z in **rad/s**; 7–9 attitude roll/pitch/azimuth in **rad**. Always at least nine wide — a source that cannot fill a group fills it with zeros **and says so** in `backing` | `frame.ts:1-13`, `FrameBacking` |
| **source** | anything that produces frames — the wire (`OscListenerSource`), the corpus (`ScoreReplaySource`), the phone (`@miadi/termux-motion`) | `src/source.ts`, `src/osc-source.ts`, `src/replay.ts` |
| **sink** | anything that hears frames — `WekinatorSink`, `ScoreRecorder`, `LiveTap` | `src/sink.ts` |
| **conductor** | one source, many sinks, an optional tempo (fps) holding each section's last note between beats | `src/conductor.ts` |
| **score** | a recorded performance: line-per-frame JSONL plus a `*.summary.json` sidecar | `src/score.ts` |
| **take** | a score seen as a capture artifact — TLID-named, in a take library, provenance surviving restart, via `@miadi/capture`'s `CaptureDriver` | `src/driver.ts` |
| **corpus** | every score ever recorded, old and new, field-compatible as one body | Episode 083 captures + all later scores |
| **landbase** | the project's own word for capture on land, outdoors, in motion. **Contested — see the sibling packet's land-based field file before using it outward.** | episode title, `2026-06-22-episode-083-…` |

## Field decomposition (MECE)

Four fields, mutually exclusive by the object each studies:

| field | studies | file |
|---|---|---|
| Open Sound Control & networked musical expression | the **wire** — protocol, transport, latency, clock | [`open-sound-control-and-networked-musical-expression.md`](./open-sound-control-and-networked-musical-expression.md) |
| Interactive machine learning & gesture–sound mapping | the **mapping** — what turns nine numbers into sound, and how it is taught | [`interactive-machine-learning-and-gesture-sound-mapping.md`](./interactive-machine-learning-and-gesture-sound-mapping.md) |
| Inertial motion sensing on commodity devices | the **sensor** — what the numbers physically are and what they can be trusted to mean | [`inertial-motion-sensing-on-commodity-devices.md`](./inertial-motion-sensing-on-commodity-devices.md) |
| Movement corpora, notation & replay | the **record** — the score as notation, archive, and instrument | [`movement-corpora-notation-and-replay.md`](./movement-corpora-notation-and-replay.md) |

What this packet deliberately does **not** hold: aesthetics, embodiment theory,
Indigenous and land-based methodology, and the ethics of the captured body. All
four live in the sibling packet, because separating them was the point — an
engineering claim and an artistic claim are answerable to different people.

## What is being grounded — the artifacts, verified in source

Read from source on 2026-08-16, in the turn this file was written:

| package | version | dependencies | what it is |
|---|---|---|---|
| `@miadi/osc` | 0.1.0 | none | OSC 1.0 wire encode/decode, `OscListener`, `OscSender` |
| `@miadi/movement-conductor` | 0.1.0 | `@miadi/capture` `workspace:^0.1.0`, `@miadi/osc` `workspace:^0.1.0` | the conductor, sources, sinks, score, replay, summary, capture driver |
| `@miadi/termux-motion` | 0.1.0 | `@miadi/movement-conductor` `workspace:^0.1.0` | Android/Termux phone sensors as a source; CLI `termux-motion-send` |

Named constants that are protocol facts, not preferences
(`packages/movement-conductor/src/frame.ts`):

- `WEK_INPUTS_ADDRESS = "/wek/inputs"` — the machine-listener's address
- `CHANNEL_COUNT = 9` — fixed, because the Wekinator project declares a fixed input count
- `WEKINATOR_INPUT_PORT = 6448` — *"the destination port of the practice"*

Unit conversion, verified in source
(`packages/termux-motion/src/source.ts:33`, applied `:173-175`):
`STANDARD_GRAVITY = 9.80665`, acceleration `m/s² → g`, *"so Android scores sit
beside"* the Episode 083 corpus. **This packet's dispatcher predicted this
conversion would be missing and was wrong** — see
[`../PREDICTIONS-260816-movement-packets.md`](../PREDICTIONS-260816-movement-packets.md).

## Provenance of the practice

The originating capture, from
`/srv/miadi/episodes/miadi-chronicle/2026-06-22-episode-083-osc-landbase-movement-capture-to-wekinator/SOURCE-LEDGER.md`:

- 376 packets over 74.98 s = **5.01 samples/second**, OSC address `/wek/inputs`
- observed sender `100.71.17.43:65336`; listening endpoint `gaia.tail3b11eb.ts.net:6448` (Tailscale)
- one phone worn on the belly during outdoor walking/movement practice
- seed concepts named by the episode itself: *Wekinator, WekiInputHelper, Kadenze "Machine Learning for Musicians and Artists"*

A 2026-08-15 run is **lane-reported and not independently verified by this
packet**: 195/195 packets at 9.9 Hz over the tailnet, and 117/117 via a REST-
triggered performance. Any claim about the 9.9 Hz figure must be re-measured
before it travels outward.

## Source quality rules

1. **Live-verified or labelled.** A source is `verified: true` in the ledger only if the lane fetched or searched it in the session that cited it. Everything else is `verified: false`, without exception and without embarrassment.
2. **Primary before secondary.** Specification text before a blog summary of it; the paper before the citation of the paper.
3. **A negative result is a result.** "No output found 2023–2026 via live search" is a finding to be recorded, never padded.
4. **Date-stamp the volatile.** Maintenance state of a tool, a person's appointment, and the status of a bill all decay. Each carries the date it was checked.
5. **Name the inference.** Where a claim is reasoned from adjacent evidence rather than stated by a source, the file says so in the sentence, not in a footnote.

## Repo placement, crosswalk, indexing

- **Placement:** repo-local, `foundations/movement-capture-and-networked-musical-expression/`, in `jgwill/Miadi` — the repo where the three packages live and where the decisions get made.
- **Sibling:** the artistic half is a separate packet root, deliberately. A reader from Concordia and a reader from the runtime need different doors into the same work.
- **Crosswalk owed to Mighty Eagle:** this is the first `foundations/` packet in this repo grounding *sensing and sound* rather than agents, terminals, or documents. If a registry exists, it should record that the movement family opened a new field cluster.
- **QMD:** both packets are markdown under `foundations/` and will be picked up by the `miadi-md` collection on the next index. Nothing special is required.
- **Episode vessel:** `.../2026-06-22-episode-083-…/foundations/` exists and is **empty** as of 2026-08-16. This packet does not fill it; if the episode wants grounding it should link here rather than fork a copy.

## Related

`jgwill/Miadi#611` (seven fields → named Concordia faculty) · `jgwill/Miadi#612`
(Allemano) · `jgwill/Miadi#613` (Bustros) · `jgwill/Miadi#614` (Manning) ·
Miadi Chronicle Episode 083 · Episode 294 (motion into chronicle — dance capture
lineage) · `rispecs/movement-conductor.spec.md` in `miadisabelle/gmtermux` ·
sibling packet `embodied-research-creation-and-land-based-media`.

🌸: A shared vocabulary is the quietest kind of hospitality — it means the next
person to walk in already knows what the words in the room mean.
