Skip to content

MIDI Message action: program and control changes to any MIDI output - #34

Merged
akorobko merged 1 commit into
mainfrom
claude/project-thread-xrq035
Dec 3, 2026
Merged

akorobko merged 1 commit into
mainfrom
claude/project-thread-xrq035

Conversation

@akorobko

@akorobko akorobko commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Requested in the project thread

Fixes #28.

What

A MIDI Message action (and a layout builder key, under "Other gear") that sends to other gear:

  • Port: any MIDI output on the computer, or the unit's own port (default).
  • Channel: 1 to 16.
  • Message: a program change, a control change with a value, or a control change that toggles between an on and an off value (127 and 0 by default).
  • Name and colour of its own, like preset and scene keys.

The key shows the port and channel on top, the name (or the message) big, and the message below it. A one-shot key flashes when it sends; a toggle stays lit while on. If the port is gone the key greys out with NO PORT and a tap gets the alert mark. Riglight can't read the other gear, so a toggle shows what it last sent. Keys that toggle the same controller on the same port and channel share that state.

How

  • packages/midi: programChange, controlChange, and createMidiOutputs. It keeps one transport per extra output, opened on first use and opened again after a failed send.
  • RigControl gains outputPorts() (cached for 1 s) and sendMidi(port, bytes). Sends to the unit's port go through the unit's open transport. Other ports use transports from a new outputs factory, which the plugin builds from the native addon (loadNativeTransports). Dev builds against the simulator reach only the unit's port.
  • The spec type is midi, with port, channel, message, number, value, off and the custom name and colour. The renderer has a new midi key kind. The controller, inspector fields, manifest entry and action icon are new too.

Screenshots

Key renders (contact sheet, "MIDI message keys" group) are in renders/contact-sheet.png. The layout builder with a MIDI key is in renders/control-center/layout-midi.png.

Tests

  • npm run check: 1032 tests pass, including the new packages/deck/test/midi.test.ts and packages/midi/test/outputs.test.ts.
  • Goldens regenerated.
  • Virtual deck e2e: 28 passed, including a new layout builder test for a MIDI toggle key.

Not tested on hardware: sending to a second, real MIDI output.


Generated by Claude Code

)

A key sends a program change, a control change with a value, or a control
change that toggles between an on and an off value, to any MIDI output or to
the unit's own port, on channel 1 to 16. It shows the port and channel, its
name (else the message) and the message; a toggle stays lit while on, a
one-shot flashes, and a missing port shows NO PORT. Toggles for the same
controller share what they last sent.

Ports for other gear open on first use, one transport each, and open again
after a failed send. Settings in the key inspector and the layout builder
(new "Other gear" group), with a name and colour of its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Wh8yKGhaWQVitkQPu8tehD
@akorobko akorobko self-assigned this Dec 3, 2026
@akorobko
akorobko merged commit 6d6759d into main Dec 3, 2026
1 check passed
@akorobko
akorobko deleted the claude/project-thread-xrq035 branch December 3, 2026 06:11
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.

Send MIDI to other gear (e.g. Fryette ZMACS)

2 participants