HanzoHIPs
Back to HIPs
HIP-1412DraftStandards TrackApplication

Hanzo DJ — Live Mixing and Performance

Hanzo AI
Created: 2026-11-28
Requires: HIP-1406, HIP-1413, HIP-0504, HIP-1415

HIP-1412: Hanzo DJ — Live Mixing and Performance

Abstract

Hanzo DJ is a real-time performance and mixing workspace with local music organization, beat-aware decks, stems, controller mappings and agent-assisted set preparation. The designated public implementation repository is hanzoai/dj (planned; establish or reconcile it before implementation). This is the normative implementation target, not a claim of shipping.

Motivation

Live performance requires predictable timing and local controls even when inference, storage and external services are unavailable.

Specification

The key words MUST, MUST NOT, SHOULD, SHOULD NOT and MAY are to be interpreted as in RFC 2119.

Collection and preparation

Maintain a catalog of authorized audio references, metadata, analyzed tempo, beat grids, musical key, waveform caches, cue points, loops, crates, playlists and preparation state. Import common playlist formats and tested library interchange formats with explicit compatibility and loss reports. Missing media, duplicates and inaccurate grids MUST be visible and correctable. Do not imply a streaming catalog permits playback or redistribution; connector rights and access govern each source.

Decks, mixing and performance

Support two/four deck layouts, hot cues, loops, beat jumps, slip, sync, key lock/shift, phrase counter, gain, EQ, crossfader, cue/headphone routing, beat-aware effects, sampler and quantized performance controls. Beat grids MUST be editable and sync MUST respect explicit performer overrides. Provide real-time stem mixing when supported; analysis/model separation runs outside the audio callback, with bounded buffering and a graceful unseparated fallback. High-quality offline separation is a Tasks activity. Use Hanzo Audio for sample-clock timing, DSP, plugin isolation and synchronization.

Hardware and automation

Support discoverable MIDI and USB HID controller mappings with device-specific capability matrices, a learn wizard, safe hot-plug and deterministic controls. No unverified device coverage claims. Support local network tempo/phase sync and optional consented PCM streaming under the Audio standard. Automix plans candidate transitions from tempo, key, cue points and user constraints; the local engine schedules sample-accurate transitions. Agent changes to live volume, deck transport or output routing require explicit performance permissions and a readily accessible manual override. Optional remote controls MUST be authenticated, scoped to a session, rate-limited and revocable. Local recording/export is an editable asset with rights metadata; broadcasting/publishing requires authorization.

Acceptance

Demonstrate two- and four-deck mixing, cue/master separation, beat-grid correction, sync, manual override, hot-plug, stem fallback, automix transition inspection, recording, local network synchronization, unauthorized remote control denial and recovery from worker/network loss without interrupting local audio. Publish measured callback latency, underruns and device compatibility. Real-time processing stays local; analysis/export/ batch work uses durable Flow/Tasks activities.

Integration and release

Implement the shared standard in HIP-1406 — Hanzo Creative — Shared Standard Library; the Studio catalog is the project/asset owner, Flow authors graphs, Tasks owns durable runs and Auto owns triggers. Long-running managed operations MUST return a Tasks run reference. Expose the same typed, versioned commands through the UI, SDK, CLI, MCP and Flow; unsupported operations fail closed and MUST NOT be advertised as shipped. Honor local-only execution and project revision/authorization constraints. Use Hanzo branding exclusively on product surfaces; retain required upstream legal attribution in notices. All application chrome, crate/library browsers, controller mapping dialogs, and unified Hanzo Settings MUST conform to HIP-0504 (GPU/canvas viewports permitted for low-latency deck waveforms, jog displays, and meters), and agent-generated set-preparation, stem, and automix transition panels MUST render via @hanzo/ui/a2ui per HIP-1415, bridged asynchronously through lock-free parameter rings so live audio callbacks never block on UI or agent calls. Publish real end-to-end fixtures, supported platform/format matrix, pinned engine versions, hashes and run receipts.

Security Considerations

Validate all asset and project references against IAM, isolate untrusted media and code, bound CPU/memory/disk/time/network, pin dependencies and model licenses, and reject unsupported or unauthorized operations. No ambient credentials, silent cloud fallback or cross-tenant data leakage. Protect hearing with sensible output levels and safe startup; no automatic broadcasting or remote control without authorization.

References

Copyright

Released under CC0 1.0 Universal Public Domain Dedication.