Repository navigation
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Hi @huupsel, thanks for sharing the NRPN design early. It's a nice idea, and asking for the base hooks first (#2540) is the right way to do it. What works: the design and the board claim. What's broken: one check, and it's an easy fix (below). Who acts: you. Next step: fix the scaffold details now. Leave the code until the hooks are settled on #2540. What to fix
Generated by Claude Code |
|
The CTRL hook design has now passed the requested unit traces and is ready for your review in #2540. Nothing NRPN has run on a unit yet. You previously asked me to leave the code until the hooks are settled there: may I already implement and host-test a standalone NRPN protocol core in this draft, without patching stock sites, claiming hook indices, or testing it on the unit, while the shared hooks wait for the agreed order? I will keep the draft unqualified and wait for your answer before adding code. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
The scaffold now has the requested experimental version, MIDI category, location, planned UI claims and testing line; local module doctor experimental checks and modules:check passed. Nothing NRPN has run on the unit. There is also a proposed design change for review: a per-knob maximum (default 127), mapping the Octatrack’s 128 positions across that range, and output including CC 38 for receivers that commit only on that message. This differs from #2540’s fixed 0–16383 scaling; the exact wire formats, receive routing and MIDI LEARN behavior remain to be settled. The draft stays open while the shared hooks and those decisions are worked out. |
|
@huupsel thanks, both are good questions. The protocol core: yes, go ahead. The hook design is settled on #2540, so the module's own code no longer has to wait for the hook order. Write and host-test the NRPN core in this draft: the send side (CC 99 and 98 only when the number changes on that channel, then the value), the receive parser (CC 99, 98, 6 and 38, with an RPN select ending a pending NRPN), the per-knob scaling and the The per-knob maximum: yes, it's better than a fixed 0-16383. Receivers count an NRPN value in the parameter's own range, so a parameter that goes 0-1023 or 0-4 can't be reached cleanly by scaling to 16383. A maximum of 16383 gives you the old scaling back, so nothing is lost. Please keep the 7/14-bit size next to it, though. Some receivers take a 7-bit value on CC 6 alone, while others want it split over CC 6 and CC 38, and the size is what decides which. That makes four fields on the NRPN page (MSB, LSB, size, maximum), so check that they fit before you draw it. #2540 still describes the fixed scaling. It can merge as it is, because the hooks are the same either way. When you add the hooks to Who acts: you. Next step: the protocol core and its host tests here. It stays a draft until the hooks land. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@huupsel thanks, the core reads well. The selection cache, the 7/14-bit split on receive (a 14-bit knob waits for CC 38, and a later CC 38 on its own still updates it), the RPN and null-NRPN resets, and rounding that lands exactly on 0 and the maximum are all as I'd hoped. Building it with One thing to build in while it's still host-only. The sender only sends CC 99 and 98 when the number changes on that channel. If the receiver is switched off and on, or replugged, mid-set, it forgets the selected number. Every turn after that is a bare CC 6 that goes nowhere, until a knob with another number on that channel selects again. Please clear the cache ( Who acts: you. Next step: the same as before: it stays a draft until the hooks land. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
The host core now clears the sender selection on playback-start and project-load callbacks, so the next value includes CC 99/98 again. Host tests passed for all 16 channels in both 7- and 14-bit formats. The callbacks are not yet wired to the Octatrack, and nothing ran on a unit; this stays a draft until the hooks land. |
A fix or improvement outside a module? Not applicable; this is a module draft.
A module or module update: MIDI NRPN 0.1.1-experimental by @huupsel (Octatrack, planned OS 1.40C compatibility). The standalone C protocol core now has host tests: per-channel NRPN selection, playback-start and project-load cache resets, 7-bit and 14-bit messages, receive parsing, per-knob scaling and a proposed versioned project list. It is not connected to the base, installable or tested on an Octatrack; no existing instrument behaviour changes.
The planned page has MSB, LSB, size and maximum. A paper check using a 4-pixel character pitch fits every value into four columns; the actual text hook area, font, encoder mapping and legibility remain untested. The Octatrack's 128 knob positions cannot select all 165 values of a 0–164 parameter. A receiver that commits on CC 38 uses 14-bit format even for a maximum of 127. Integration must serialize complete outgoing packets and lifecycle events, connect the playback-start and project-load resets on every output stream, observe other selectors, reset receive state across project/Part changes, and stage and validate the full project list before writing it. Auto channel, CC DIRECT CONNECT routing, MIDI LEARN and message consumption remain to be implemented and tested.
Source is original MIT-licensed module code; no firmware or factory content is included. UI/media and release evidence are not present. The core contains no stock addresses or hook indices. Shared hooks must land before integration or unit trials; #2540 records their design and separate stock traces.
Tested on a unit: Not tested on a unit: the NRPN module is not integrated or built. #2540's stock traces do not test NRPN.
Edge cases
What the guides lacked or got wrong, and where I fixed it: nothing identified in the guides.
docs/module-guides/(andsequencing.mdif it acts in time), and TESTING.md lists what I did not test. An effect module holds one effect.Registered module authors can opt into automatic publication after reviewing all the evidence; a first release leaves both boxes unticked. An update that reaches firmware or hardware addresses the published version did not use goes to owner review instead, and followers hear about an automatic release 48 hours after it goes live:
Reviewer (an assigned device reviewer or a repository maintainer for a first release, the registered author for their own update):
Validation commands and results:
python3 -B sdk/drafts/midi-nrpn/test_nrpn.py: passed.npm run module:doctor -- --draft midi-nrpn: experimental checks passed; release evidence and an integrated module remain missing.npm run modules:check -- --base origin/main: failed; the changed draft lacks the OT UI access instructions and screenshots required for publication. The UI is not built.git diff --check: passed.Related to #2540 and #2436.