Skip to content

feat(dmx-studio): add standalone MaestroDMX integration - #357

Draft
syntrociety wants to merge 32 commits into
Cd1s:mainfrom
syntrociety:feat/maestro-dmx-studio
Draft

syntrociety wants to merge 32 commits into
Cd1s:mainfrom
syntrociety:feat/maestro-dmx-studio

Conversation

@syntrociety

@syntrociety syntrociety commented Nov 29, 2026 •

Copy link
Copy Markdown

What and why / 改了什么、为什么

Refs #340

This adds an optional standalone MaestroDMX integration to DMX Studio. One SC6000 sends lighting commands over Ethernet using deck timing and light tags from both players. The optional Xone:96 MIDI input helps select the playing deck to follow across all four paired deck layers. MaestroDMX still receives the programme audio directly from the mixer.

  • Add a MaestroDMX tab in Control Center for show status, deck selection, track-tag mappings, brightness and output settings.
  • Send OSC over UDP 7672 by default. Tag-based show changes use /show/name or /show with a string and /show/play with no arguments. Prepared track plans use /show/cue with an integer and follow sampled track position through loops and hot-cue jumps.
  • Use configurable phrase length and lead time for tag-based show switching. Stale or ambiguous deck timing suppresses new lighting changes. Maestro continues its current show. The panel reads back the active show and cue through Maestro's MCP endpoint.
  • Allow optional OSC startup when a Maestro address has been saved. The deck build used for field testing enables this option.

The Lightstage Viewer stays in its separate repository. This PR is scoped to the EngineX integration.

How it was tested / 怎么验证的

  • Field-tested on two Denon SC6000s (JP13), with an Allen & Heath Xone:96, a CME H4MIDI WC and MaestroDMX. Checked the four MIDI fader mappings and verified that OSC became active after restarting the helper with the 1.4.5 field build.
  • Compared all 15 DMX Studio runtime source files in that installed package with the checkout. They match byte for byte. git diff --check and node --check docs/site/content.js passed.
  • ARM CI passed at 9a213f1b. It covered deck clock, OSC, MIDI, existing DMX output, gateway and peer metadata, the Control Center entry and the Qt Quick panel. It also built the mod helpers for armhf and arm64 and the SC6000 clock gateway. Real hardware coverage is limited to the SC6000 setup above.

Checklist / 自检清单

  • Zero audio xruns / 实时音频铁律: OSC, MIDI and Maestro requests run in the mod helper. The Engine real-time audio callback is unchanged.
  • All 16 models / 全机型兼容: field testing is currently limited to JP13.
  • Tests pass / 自动化测试全绿: full upstream test suite and additional hardware validation pending.
  • No private data / 零隐私泄露: source, tests, docs and screenshots only. No private credentials, vendor binaries or firmware images.
  • Docs in sync / 三语文档同步: all three root READMEs link to the wiring and setup guide. The website guide is updated in all three languages, and Output & MIDI includes wiring help.
  • No destructive tests on a real deck / 不在实机做破坏性测试.

syntrociety and others added 30 commits November 26, 2026 13:32
…point

The helper now polls MaestroDMX's MCP endpoint (read-only, port 8888 by
default, 0 turns it off) for the show list and the playback state. OSC
stays the only path that changes anything on Maestro.

The panel uses it to confirm a requested show, show the current cue,
mark shows that run on their own, need manual cues or use a laser zone,
pick shows from Maestro's list in Tags & shows, and flag routes that
point at a show Maestro no longer has.

Tests: a fake MCP server covers JSON and SSE replies, caching and the
disabled-laser case; the panel check runs against a fake Maestro.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Send the show ahead of the phrase boundary by a configurable lead
  (Voorloop, default 300 ms, 0-1000) so Maestro has started it on the beat.
- Pin the paused start: after a restart nothing is sent until OSC is
  switched on again, even with a saved address; the panel says so.
- Rate each cue 0-100 from Maestro's own cue settings (brightness,
  intensity, motion, motion speed over lit zones) and show a show's
  energy range and the playing cue's energy. Blacked-out zones no
  longer count as lit, also for the laser mark.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Dark theme for every stock control through the Controls palette,
  accent buttons for the main actions, own tab buttons and header
  status pills (Maestro, OSC, lead).
- Showregie: a show strip with one bar per cue by energy (playing cue
  white) and a phrase countdown with beat cells per bar.
- Energy badges coloured from calm blue via amber to red; Deckmix
  cards show BPM, a fader bar and mark the deck that sets the tags.
- Fix the "Fixtures _output" tab label (escape the mnemonic &).
- The panel check also renders the settings screen.
- CI builds get a numeric version 1.3.0.<run> so the deck upgrades the
  mod in place and keeps its settings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A new Helderheid screen lowers a fixture group live, for when the floor
says the lights are too bright. Maestro drives a fixture's colour
channels and its master dimmer is a static channel, so the helper scales
that value (or, without a master dimmer, the colour channels' output
range) against a baseline it keeps; 100 % restores the Stage. It applies
in every show and cue and stays on Maestro. It is the helper's only MCP
write, touches nothing else and saves the active Stage first. Alles sends
/global/brightness over OSC for every light, a laser too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Maestro build shared the id dmx-studio with the official DMX Studio, so
an upload of a newer official version would replace it in place, and both
showed up as "DMX Studio". It now ships as maestro-dmx-studio ("Maestro DMX
Studio") with its own folder and panel port (17841), built by
tools/mods/build_maestro_mod.py.

- Helper: the new id runs DMX Studio under its own state directory and, on
  its first start, copies the settings saved under dmx-studio (Maestro,
  DMX, brightness, Stage backups). It never overwrites settings it has.
- Gateway and UI pack accept both ids: the deck clock and the MaestroDMX
  Control Center tab follow whichever is enabled, preferring the new one,
  and the tab reloads the panel from that Mod's folder when the id changes.
- CI builds and checks the maestro-dmx-studio package; the panel check
  asserts its id, folder and port.
- A non-Linux stub for the ALSA MIDI clock lets the package test on a
  development machine.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… parts

The MaestroDMX tab used generic Qt controls with its own colours, and its
drop-down lists did not open inside the Control Center. It is now built
like Engine's Settings tab: the sub-tab bar (PreferencesTabView), a
scrolling list per sub-tab (FlickableTabContent) and Engine's own rows
(Section, PrefsValueEntry, SwitchEntry, ListEntry, PrefsSliderEntry,
PrefsButtonEntry, EmbeddedTextInput with Engine's keyboard), loaded from
Engine's qrc at run time. Colours and fonts come from Engine's Style, so
day and night mode match, and the page has no background of its own.

- Sub-tabs: Show, Decks, Tags, Brightness, Settings and DMX Tools; the
  connection and OSC state sit above them on every sub-tab.
- Long lists (shows, MIDI inputs, fixture profiles) are rows to tap;
  settings apply at once, and are locked with a note while OSC runs.
- Panel.qml talks to the helper and loads MaestroNative.qml; without
  Engine's parts it loads the earlier panel (LegacyPanel.qml). Its id is
  `panel`, so Engine's rows reach root.scT() on the main screen.
- build_maestro_mod.py --shared-id builds the same under the id
  dmx-studio, for decks whose UI pack opens the tab only for that id.
- The panel check keeps exercising the earlier panel and now also drives
  the native page against stand-ins for Engine's parts, served at
  Engine's qrc paths (tools/mods/qrc_pack.py); none of Engine's QML is in
  the repository.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Qt 5 refuses font and font.capitalization on the same item.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PyQt5's invokeMethod does not emit QML signals that take arguments.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
syntrociety and others added 2 commits November 30, 2026 09:51
…nges

The panel check also finds Repeater rows, which have no QObject parent.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…h the tabs

Engine's Section places its heading at the top of a fixed 40 px strip, so
on the MaestroDMX tab each heading sat against the row above it.
NativeSection keeps Engine's font and a quieter colour, puts room above
the heading and lines it up with the row text; the first group sits
closer to the tab bar, and a group without heading keeps its distance.

- Each sub-tab ends with room below its last row.
- Show drops its Connection row: the band above the sub-tabs says it.
- The deck that follows tags is named in its heading only.
- build_maestro_mod.py stops when a QML file of the mod is not packaged:
  the deck would fall back to the earlier panel.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant