Skip to content

Improvement: the site syncs Octatrack USB Audio as a module package (switched off until a package is published) - #1865

Merged
repeat98 merged 13 commits into
mainfrom
improvement/usb-audio-package-site
Nov 20, 2026
Merged

repeat98 merged 13 commits into
mainfrom
improvement/usb-audio-package-site

Conversation

@repeat98

@repeat98 repeat98 commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Base compatibility

The published Octatrack base 0.7.11 from #1840 still uses its built-in audio layouts. This site PR keeps that installation path active. The companion USB Audio PR targets USB Audio 0.3.0-experimental on the new 0.7.12 base. The installer switches to the configurable module with that release.

The installer can select one USB Audio runtime package for every recording layout. The published site continues to use the existing base variants until the cumulative base, matching package manifest and migration are qualified.

What was hard

The site treated each audio layout as a different base. A paired page could also see another client's unfinished trial when the Octatrack reconnected, and undo it.

What changed

  • The runtime catalogue understands a configurable USB Audio package (inventory kind 7). Every set installs that package once. Changing the Octatrack's recording layout, stem tap or Outbox sources no longer asks the installer to replace it during a later sync. Legacy single-layout entries can still supply an exact Undo for a migration.
  • Once published as a package, USB Audio uses the usual Add and module limit. The module page directs the player to PROJ → MODWERK → SETTINGS → USB AUDIO and explains the one-time Outbox output mapping.
  • The owning page can resume its matching audio trial across the initial reconnect and subsequent panel format changes. A page that finds another client's audio trial releases the interface and permits the unit's normal idle recovery.
  • The package flag remains off until the matching manifest is published. The catalogue test checks that the flag agrees with the manifest.

How I checked it

114 focused catalogue and USB-link tests passed. Cases include legacy Undo, repeat sync after panel changes, a second reconnect owned by the same page, a different trial or a newer transaction for the same package found during reconnect, and a paired page opening while another client owns the audio trial.

Tested on a unit

The companion firmware build passed the panel and native USB trial on the owner's Octatrack MKII. One package recorded all five USB widths on macOS. A paired Opera process held the unit during an earlier reconnect. Closing Opera allowed the matching native trial to continue. In an integration run, the actual site link opened the same emulated device as a native client with an ongoing audio trial. The site released the interface. The native client verified the original candidate digest, completed Undo and recovered the baseline descriptors. A browser-to-hardware run of this branch remains open. Firmware and unit evidence

Guides

The module details give the on-instrument path and first-time Outbox setup. The firmware change records how to distinguish a USB client holding the interface from proof that it sent Undo.

Related to #1831.

…nce one is published

With the package manifest listing USB Audio packages per layout, the catalogue installs, replaces and removes
USB Audio like any module and reads the installed layout from the unit; it counts toward the module limit; the
Load dialog, unit panel and hub stop leaving it out; and the link keeps a sync open across the base's own USB
reconnect, keeping only once the unit is back. With no package listed nothing changes: USB Audio comes with the
base in its layout, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the enhancement New feature or request label Nov 20, 2026
repeat98 and others added 4 commits November 20, 2026 13:42
…o the manifest

The Worker's module-limit check reads src/config/usb-audio.ts, and importing the package manifest there made it
a backend dependency without a licence review (licenses:check). The flag is now a constant, false while no package
is published, and usb-audio-package.test.ts requires it to match the manifest's usbAudio.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98

Copy link
Copy Markdown
Owner Author

The reconnect check compares the base, active digest, transaction and generation before calling adopt(), but leaves out UploadStatus.session. Those counters can repeat on a fresh boot or a second Octatrack running the same build and package. The controller already provides a per-boot session identifier, and a USB interface change on the same running unit should retain it.

Please match the previous session identifier as well. The reconnect test can keep the digest and both counters identical, change only the session, and check that the browser leaves that trial alone. Then run the browser-to-unit reconnect and Undo on the intended build.

@repeat98
repeat98 marked this pull request as ready for review November 20, 2026 21:19
@repeat98
repeat98 enabled auto-merge November 20, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant