Repository navigation
MIDI Message action: program and control changes to any MIDI output - #34
Merged
Merged
Conversation
) 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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, andcreateMidiOutputs. It keeps one transport per extra output, opened on first use and opened again after a failed send.RigControlgainsoutputPorts()(cached for 1 s) andsendMidi(port, bytes). Sends to the unit's port go through the unit's open transport. Other ports use transports from a newoutputsfactory, which the plugin builds from the native addon (loadNativeTransports). Dev builds against the simulator reach only the unit's port.midi, with port, channel, message, number, value, off and the custom name and colour. The renderer has a newmidikey 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 inrenders/control-center/layout-midi.png.Tests
npm run check: 1032 tests pass, including the newpackages/deck/test/midi.test.tsandpackages/midi/test/outputs.test.ts.Not tested on hardware: sending to a second, real MIDI output.
Generated by Claude Code