# Mixel LightScore platform — architecture and 27-screen live synchronization laboratory

**Status:** Working architecture / prototype specification · 2026-10-18  
**Authority:** Product design record. Do not mistake proposed features for completed implementations.

## Brand and product boundaries

- **Mixel Studio** — authoring and production environment at `mixel.one/studio/`. Import multiple audio/video tracks, edit them on a shared timeline, analyze music, compose device-independent and optionally device-specific LightScore cues, and preview the result. Current browser prototype supports one imported media file, elementary audio analysis and editable cues; multitrack mixing, professional rendering and video soundtrack extraction remain planned.
- **LightScore** — the device-independent visual music specification, published as `.mxl`. A cue describes artistic intent (timing, colour palette, pulse/wave/gradient, intensity, geometry, direction, fallback) rather than commands for a particular brand. The format is experimental and needs versioning, schema, compatibility and safety policy.
- **Mixel Play / LightScore Play** — consumer playback and local hardware controller. It associates media with a matching LightScore, synchronizes to the media clock, maps abstract spatial cues to room profiles and hardware adapters, and manages calibration, latency, reconnection and safety. Planned home: `mixel.one/play/`.
- **Mixel Play Live / LightScore Live** — premium event director. The operator creates an event and seating/standing-area map, controls a master timeline, distributes scores and clock synchronization, and monitors connected audience phones and screens. Attendees join at `mixel.show` using a QR code or event URL, select their seat/location and render their own spatial LightScore. No app installation should be required for web-compatible effects.
- **mixel.world** — corporate/product documentation and standard; **mixel.one** — creator/operator applications; **mixel.show** — audience/venue web experience.

## File formats and media distribution

1. **`.mxlproj`** is the native editable project package. It preserves media assets, multiple audio/video tracks, timeline clip placement, source in/out, edits, analysis, room previews, cue tracks, project metadata and version history. The current v1 prototype is a binary header + JSON manifest + a single embedded media blob; it MUST be upgraded with backward-compatible migration for multitrack media.
2. **`.mxl`** is the published portable lighting score, with music identity, timing, semantic effects, spatial intents, cue sequence and fallbacks. It generally does **not** bundle licensed audio/video.
3. **MP3/MP4/MOV/WAV integration:** embedded metadata/track where technically viable; sidecar `song.mxl`; or linked score retrieved using recording identifier and/or fingerprint. Ordinary media players cannot be assumed to execute LightScore metadata. Codec/container compatibility and metadata persistence must be tested.
4. **Rendered video** is an optional MP4 deliverable for demonstrations, with effects visually rendered into the picture; this does not independently operate physical lights.

## Playback and hardware mapping

Mixel Play discovers or manually configures supported manufacturers and devices, room/zone geometry, device capabilities, latency, firmware/API limits and calibration. Adapters translate semantic cues to Philips Hue, Nanoleaf, Govee and other systems only where their supported APIs permit. Graceful fallback: segmented wave → sequential bulbs → one-zone colour fade → dimming-only effect. Playback uses a media-referenced clock; scheduling compensates for measured device latency. Support seek, pause, restart, dropped connection, reduced-flash, brightness caps and immediate blackout.

## Live premium event model

Event Director publishes a session identifier, venue map and playback state. Audience member opens a website, selects row and seat/monitor, receives spatial mapping, synchronizes local clock to event time, and renders locally. Event service must support QR joins, duplicate-seat policy, participant presence, diagnostics, disconnections and operator blackout. At scale, send clock anchors and compact score/state updates, not per-phone per-frame RGB traffic. Avoid assuming browser timing is perfectly accurate: estimate clock offset, measure jitter, resynchronize and collect evidence.

## 27-screen test: two rows

- **Row 1:** 12 monitors, IDs `R1M1` through `R1M12`.
- **Row 2:** 15 monitors, IDs `R2M1` through `R2M15`.
- Each browser joins at `https://mixel.show/live-lab/` and selects its row and monitor number; selected ID remains visible during testing.
- Director controls at `https://mixel.show/live-lab/director/` select pattern, two colours, interval, intensity, play/pause and blackout.
- **Spatial patterns:** left-to-right wave (normalized position within each row), right-to-left, row sweep, checkerboard, all pulse. Timing is anchored to server time; the screens independently render their spatial result.
- **Diagnostics:** each screen shows server offset estimate, current frame, connection status and event time. Director sees active participant seats based on heartbeats.
- **Security and production requirements:** demo controller is token-gated; HTTPS required; production needs authenticated operator roles, event-specific tokens, seat reservation policy, server-side access control, audit logging, CSRF/CORS restrictions, robust storage, clock telemetry and load testing. Do not advertise this laboratory as a production-ready paid service.

## Planned roadmap

1. Live laboratory with 27 independently joining screens, synchronized effects and director control.
2. Verify real-device latency, clock drift and reconnection; add repeatable tests and visual diagnostic patterns.
3. Extend Studio to true multitrack `.mxlproj`, video soundtrack analysis and clip-level score generation.
4. Implement Mixel Play local device profiles and first hardware adapter.
5. Finalize `.mxl` schema, media matching, embedding/sidecars, interoperability and safety.
6. Add scalable event orchestration, operator authentication, seat management, venue layout and premium service tiers.

## Design invariant

**Compose once; interpret anywhere.** A published LightScore is independent of the audience's phone model, room, seat and smart-light manufacturer. The Play engine maps the same artistic intent to the capabilities and physical position of each device.
