# Open Sound Control & Networked Musical Expression

**Packet:** movement-capture-and-networked-musical-expression · **Date:** 2026-08-16
**Verification:** live-web-verified · **Lane model class:** Claude Sonnet 5

## Why this field grounds the work

`@miadi/osc` is a from-scratch implementation of a 24-year-old, deliberately small wire protocol — the same one Wessel and Wright built at CNMAT specifically because MIDI's 7-bit, 128-step, serial-only model could not carry continuous gestural data. The nine-channel `/wek/inputs` frame is exactly the kind of "instrumental gesture control" stream the OSC best-practices literature analyzes: a fixed-rate bundle of float32 values, sampled far below audio rate (5.01 Hz in Episode 083's field capture, 9.9 Hz on the tailnet), where jitter and packet loss — not raw bandwidth — are the binding constraints. The tailnet hop (`gaia.tail3b11eb.ts.net`) turns what the literature treats as a LAN protocol into a WAN/VPN-overlay path, which is precisely the scenario the networked-music-performance research warns changes the latency and jitter budget. And the `@miadi/osc` types file's lesson — the destination port is not the source port — is not folklore; it is the exact "missing support for bidirectional messaging" gap the OSC best-practices paper names as a shortcoming of UDP-based OSC implementations.

## Canonical concepts

- **OSC 1.0** was specified by Matt Wright (with Adrian Freed) at CNMAT, UC Berkeley, and published as a document dated March 26, 2002; the protocol itself was in use inside CNMAT from 1997. It defines OSC Packets as either a single OSC Message or an OSC Bundle, address patterns beginning with `/`, a type-tag string beginning with `,`, and 32-bit-aligned argument encoding so that every value in a packet stays word-aligned regardless of preceding string lengths [osc-1.0].
- **OSC Bundles and time tags**: a bundle is the string `#bundle` followed by a 64-bit NTP-format time tag (32 bits seconds since 1900-01-01, 32 bits fractional seconds to ~200 picoseconds precision) followed by zero or more length-prefixed bundle elements; the all-ones-in-low-bit time tag value means "execute immediately" [osc-1.0].
- **OSC 1.1** (Freed & Schmeder, presented at NIME 2009) folded several de facto extensions into the required core: additional type tags (`T`/`F` for boolean, `N` for Nil, `I` for Infinitum, array brackets), and — critically for any transport other than UDP — a mandated SLIP (RFC 1055) double-END framing scheme for OSC-over-TCP and OSC-over-serial, because OSC's own bundle/message format has no built-in way to mark packet boundaries on a byte stream [osc-1.1-nime09].
- **No OSC 1.2 / successor standard exists**: OSC 1.1 (2009) remains the reference specification; the community discussed an OSC 2.0 roadmap but no follow-on version has shipped. Evolution since has been implementation-level (libraries, best-practice papers) rather than a new normative spec [osc-status].
- **Transport is explicitly out of scope of the wire format**: OSC content can ride UDP (a "non-assured" datagram transport — a packet either arrives whole or not at all, and packets can arrive out of order, which bundle time tags exist partly to let a receiver reorder), TCP or serial (an "assured," continuous-stream transport requiring the SLIP framing above), or isochronous transports like Ethernet AVB. UDP is the overwhelmingly dominant choice for gestural/sensor control because it never blocks on retransmission [osc-best-practices].
- **The 10 ms / 1 ms rule of thumb** comes directly from Wessel & Wright, "Problems and Prospects for Intimate Musical Control of Computers" (CNMAT, presented at the CHI 2001 NIME workshop): *"We place the acceptable upper bound on the computer's audible reaction to gesture at 10 milliseconds (ms) and the systems described in this paper provide for measured latencies nearer 7 ms. Low variation of latency is critical and we argue that the range of variation should not exceed 1 ms."* They tie the 1 ms figure to psychoacoustic evidence that drum-flam grace-note timing becomes audible once temporal offsets exceed roughly 1 ms [wessel-wright-2001].
- **NIME (New Interfaces for Musical Expression)** began as a two-day workshop at ACM CHI 2001 in Seattle, organized by researchers including those from ATR Labs Kyoto; the Wessel & Wright OSC-latency paper above was part of that founding workshop. It became an annual standalone conference the following year and remains the primary venue for protocol, mapping, and controller-design literature in this space [nime-history].
- **Ensemble Performance Threshold (EPT)**: the networked-music-performance literature sets the end-to-end delay ceiling for players to keep a shared tempo without a conductor at roughly 20–30 ms — analogized to the ~8–9 m of physical separation at which speed-of-sound delay alone would already disrupt ensemble timing. Beyond that threshold, latency measurably slows tempo and degrades timing regularity; jitter separately degrades rhythmic synchronization even when mean latency is acceptable [nmp-ept].
- **Forward synchronization via time tags**: Schmeder, Freed & Wessel show that when transport jitter exceeds the tolerable window, an OSC receiver can trade jitter for a small fixed extra delay by scheduling bundles to fire at their time tag rather than on arrival — "provided that total delays after rescheduling are less than 10 msec, a satisfactory music performance experience is possible" [osc-best-practices].

## Key findings

1. OSC's headline design goals — human-readable hierarchical addresses, symbolic pattern matching, arbitrary-precision numeric types, and time-tagged bundles — were built explicitly to fix MIDI's 128-step 7-bit resolution and serial-only transport, not to add networking as an afterthought [wessel-wright-2001][osc-1.0].
2. The specification deliberately does not mandate a transport. UDP is the default for real-time gestural streams because "late is as bad as wrong" for control data — a dropped or stale packet is preferable to a queued/delayed one — while TCP (with mandatory SLIP framing under OSC 1.1) is reserved for cases needing guaranteed delivery over low latency [osc-best-practices][osc-1.1-nime09].
3. Because UDP is non-assured and can reorder packets, OSC's own bundle time tags exist partly as a self-defense mechanism: a receiver can use them to detect and correct out-of-order delivery, not just to schedule future execution [osc-1.0][osc-critique-fraietta].
4. A hard critique exists in the literature (Fraietta, NIME 2008) arguing OSC "cannot deliver on its promises as a real-time communication protocol for constrained embedded systems," specifically because plain UDP-based OSC gives no delivery or ordering guarantee — the paper's worked example is two independently-sent messages (`/motor/direction`, `/motor/start`) arriving in the wrong order and producing a materially different real-world effect than intended. This is a direct, real risk for any OSC consumer (e.g., a `MovementSink`) that assumes packet order implies temporal order [osc-critique-fraietta].
5. The 10 ms / 1 ms figures are not folklore — they are a specific, cited claim (Wessel & Wright 2001, with 7 ms measured in their own contemporaneous system) grounded partly in psychoacoustic literature on grace-note ("flam") timing perception, not a generic real-time-systems number [wessel-wright-2001].
6. Jitter tolerance is dynamic-range- and bandwidth-dependent, not a single constant: Schmeder/Freed/Wessel's analysis shows a 10 Hz control signal needs jitter under ~0.1 ms to preserve 8-bit dynamic range, and under ~0.5 microseconds to preserve 16-bit — sampling a channel at only ~5–10 Hz (as this repo's field data does) is well inside the regime where ordinary consumer-OS scheduling jitter (1–10 ms, per their citation of Wright et al. 2004) is already the dominant noise source, not the network [osc-best-practices].
7. Networked/distributed music performance research treats latency and jitter as jointly determining an "Ensemble Performance Threshold" around 20–30 ms for tight, conductor-less synchrony; a single directed sender→receiver control path (as in this repo's `Conductor`) is a materially easier case than mutual ensemble sync, but the same delay-and-jitter physics apply to how "live" the sink's fan-out feels [nmp-ept].
8. Overlay/VPN networks (WireGuard, and Tailscale which is built on it) add a network hop and, when a NAT/relay fallback is needed instead of a direct peer path, materially increase latency and reduce throughput versus a direct connection; WireGuard itself is reported to have a latency/jitter edge over other VPN protocols, but no peer-reviewed study specific to musical/gestural control traffic over Tailscale was found in this search — this is an engineering inference from general Tailscale/WireGuard performance literature, not a domain-specific finding [tailscale-perf][wireguard-vs-tailscale].
9. MIDI 2.0 (ratified by the MIDI Association, January 2020) closes much of OSC's traditional resolution advantage — 32-bit per-note controllers (~4.2 billion steps vs MIDI 1.0's 128), Jitter Reduction Timestamps, Profile Configuration and Property Exchange for device self-description — while MPE (MIDI Polyphonic Expression, 2018) already gave per-note pitch bend by temporarily assigning each note its own channel. Neither, however, natively runs over IP/UDP the way OSC does by default; MIDI 2.0's transport story is USB/serial/BLE-centric, with OSC (or vendor bridges) still the practical path for LAN/WAN-networked control [midi2-facts][mpe-facts][osc-vs-midi].

## Cautions & contested ground

- Whether "OSC is fast" and "OSC is efficient" are true claims is directly disputed in the literature — Fraietta's NIME 2008 paper calls both "myths" for constrained/embedded contexts, arguing the address-pattern parsing and unbounded-reliability model cost more than range-based protocols like Modbus/DNP for that use case. This does not invalidate OSC for a Node.js/desktop conductor, but it is a real citation against reflexive "OSC is the fast/efficient choice" claims [osc-critique-fraietta].
- The 10 ms / 1 ms figures are specific to Wessel & Wright's direct-manipulation, percussion-adjacent performance context (drum flams, live gestural controllers played by a trained performer). Applying them unmodified to a 5–10 Hz whole-body movement-to-synthesis pipeline is an extrapolation, not something the source paper claims — the field-capture rate here (5.01–9.9 Hz) is nowhere near the audio-adjacent signal rates the jitter-vs-dynamic-range table in the best-practices paper models, so those specific numeric ceilings (e.g. "0.1 ms jitter for 8-bit dynamic range at 10 Hz") should be read as an illustrative method, not a pass/fail bar for this repo's data.
- No primary source found in this search states an official "OSC 1.2" exists; treat any claim of a formal successor spec as false as of 2026 — evolution has been through implementation best-practice papers (2010 Linux Audio Conference) and libraries, not a new ratified version [osc-status].
- The Tailscale/WireGuard latency claims above come from general networking benchmarks and vendor/community sources, not from a peer-reviewed networked-music-performance study of overlay VPNs specifically — flag this as an inference chain (general VPN performance literature + NMP latency-threshold literature), not a single authoritative finding, if it is carried into a proposal.
- OSC's spec explicitly leaves bidirectional messaging (how a receiver replies to a sender) unspecified; the "reply-to source port" behavior is a widespread implementation convention (seen in Behringer console firmware, standard UDP server code) rather than a protocol requirement — other implementations (e.g. TouchOSC) deliberately violate that convention by sending from their configured listen port instead of an ephemeral one. This is exactly the ambiguity `@miadi/osc`'s types documentation is warning against, and it is a documented, real gotcha in the wild, not an edge case invented for this repo [touchosc-ports].

## Engineering implications for this repo

- `packages/osc/src/*` (encode/decode) is implementing OSC 1.0's core wire format (address pattern, comma-prefixed type-tag string, 32-bit-aligned arguments); if `@miadi/osc` ever needs boolean/nil argument types or a TCP transport, OSC 1.1's type-tag additions and mandatory SLIP framing are the spec to consult, not an ad hoc extension [osc-1.1-nime09].
- `packages/osc/src/` should treat "the destination port is not the source port" as a first-class documented contract (which it already is per the facts given) — this is not a Miadi-specific quirk, it is the exact ambiguity the OSC literature flags as a spec gap; if `OscListener`/`OscSender` in this package or `packages/movement-conductor/src/sources/OscListenerSource.ts` ever add a reply/ack path, do not default to "reply to the packet's source address:port" without documenting that choice, since it is a convention, not a guarantee, across the OSC ecosystem [touchosc-ports][osc-best-practices].
- `packages/movement-conductor/src/Conductor.ts`'s "hold each channel's last value between beats" design is the correct, literature-aligned response to OSC-over-UDP's non-assured delivery: rather than assuming every `/wek/inputs` packet arrives, holding last-known-good values is a standard mitigation for datagram loss, and is preferable to blocking/waiting for a specific packet [osc-best-practices].
- Because bundle/message *order* is not guaranteed over UDP, any future logic in `packages/movement-conductor/src/sinks/` or `packages/osc/src/` that infers meaning from the *sequence* of two related OSC messages (rather than treating each packet as a complete, self-contained state snapshot — as the current nine-channel-per-packet frame already does) should be treated as a known failure mode, per Fraietta's reordering example [osc-critique-fraietta].
- The tailnet hop (`gaia.tail3b11eb.ts.net`) puts this system's control path inside the WAN/overlay-VPN case the networked-music-performance literature separates from LAN: if a future `movement-conductor` proposal claims a specific millisecond latency budget across that hop, it should be measured directly (e.g. via OSC time-tag round-trip or simple timestamp echo) rather than asserted from the general Tailscale/WireGuard benchmarks found in this search, since none of those benchmarks are music-control-specific [tailscale-perf][nmp-ept].
- `ScoreRecorder`'s JSONL-per-packet plus summary sidecar is effectively the "OSC stream as archival file/database" pattern the best-practices paper describes (treating a recorded control stream as a serial transport with its own framing) — its recommendation that archived streams use absolute time rather than relative/elapsed time is directly checkable against `ScoreRecorder`'s current timestamp field choice [osc-best-practices].
- The measured field rates in this repo (5.01 Hz original capture, 9.9 Hz current tailnet run) sit far below any bandwidth or MTU constraint discussed in the literature (UDP's practical ~1472-byte payload ceiling before fragmentation) — network throughput is not the bottleneck here; scheduling/OS jitter and the tailnet hop's latency variance are the more relevant risk per the sources above, not packet size [udp-mtu].

## Lines worth carrying into voice chronicle

- OSC was built at Berkeley in the late 1990s specifically because MIDI's numbers were too coarse for real gesture.
- The ten-millisecond rule that shapes how "live" a control loop feels traces back to one 2001 paper about how fast a drummer's flam has to land before the ear catches the difference.
- OSC never promises a message will arrive, or arrive in order — it promises the message that does arrive stays honest about when it happened.
- Sending a phone's movement over a Tailscale tunnel to a listener across the network is exactly the kind of hop the networked-music-performance research says changes the timing budget.
- The rule that the reply doesn't go back to where the message came from isn't a Miadi quirk — it's a gap the protocol's own literature has been naming for over a decade.

## Sources

| id | title | author / venue | year | url or doi | verified |
|---|---|---|---|---|---|
| osc-1.0 | The Open Sound Control 1.0 Specification | Matt Wright, CNMAT / opensoundcontrol.org | 2002 | https://opensoundcontrol.stanford.edu/spec-1_0.html | true |
| osc-1.1-nime09 | Features and Future of Open Sound Control version 1.1 for NIME | Adrian Freed, Andy Schmeder — NIME 2009 | 2009 | https://hangar.org/wp-content/uploads/2012/01/Nime09OSCfinal.pdf | true |
| osc-status | Open Sound Control (overview, current-standard status) | Wikipedia | accessed 2026 | https://en.wikipedia.org/wiki/Open_Sound_Control | true |
| wessel-wright-2001 | Problems and Prospects for Intimate Musical Control of Computers | David Wessel, Matthew Wright — CNMAT / NIME workshop @ CHI 2001 | 2001 | https://opensoundcontrol.stanford.edu/files/p1-wessel-1.pdf | true |
| nime-history | 20 NIMEs: Twenty Years of New Interfaces for Musical Expression | NIME community / nime.pubpub.org | 2021 | https://nime.pubpub.org/pub/20nimes | true |
| nmp-ept | An Overview on Networked Music Performance Technologies (Ensemble Performance Threshold) | CCRMA Stanford | undated (accessed 2026) | https://ccrma.stanford.edu/~cc/deck.js/politoOnlineJamming/pdf/overview.pdf | true |
| osc-best-practices | Best Practices for Open Sound Control | Andrew Schmeder, Adrian Freed, David Wessel — Linux Audio Conference, Utrecht | 2010 | https://parlab.eecs.berkeley.edu/sites/all/parlab/files/osc-best-practices.pdf | true |
| osc-critique-fraietta | Open Sound Control: Constraints and Limitations | Angelo Fraietta — NIME 2008, Genova | 2008 | https://www.nime.org/proceedings/2008/nime2008_019.pdf | true |
| touchosc-ports | Connections · OSC · TouchOSC (listen-port-as-send-port convention) | Hexler (TouchOSC manual) | accessed 2026 | https://hexler.net/touchosc/manual/connections-osc | true |
| tailscale-perf | Performance best practices | Tailscale Docs | accessed 2026 | https://tailscale.com/docs/reference/best-practices/performance | true |
| wireguard-vs-tailscale | WireGuard vs Tailscale: Performance, Configuration, and Costs | Contabo Blog | accessed 2026 | https://contabo.com/blog/wireguard-vs-tailscale/ | true |
| midi2-facts | Introducing MIDI 2.0 / MIDI 2.0 ratification and feature summary | Sound on Sound; MIDI Association coverage | 2020 (ratification) | https://www.soundonsound.com/music-business/introducing-midi-20 | true |
| mpe-facts | MIDI Polyphonic Expression (MPE) Specification | MIDI Association | 2018 | https://midi.org/midi-polyphonic-expression-mpe-specification-adopted | true |
| osc-vs-midi | Introduction to Open Sound Control (OSC) | MCT Blog (networked music course notes) | 2024 | https://mct-master.github.io/networked-music/2024/03/17/thomaseo-intro_to_OSC.html | true |
| udp-mtu | How to Troubleshoot UDP Fragmentation Issues (MTU/UDP payload ceiling) | oneuptime.com | 2026 | https://oneuptime.com/blog/post/2026-03-20-troubleshoot-udp-fragmentation/view | true |
