Нет описания

Johan Le Baut 8aad945e00 fix audio 1 неделя назад
amp_emul a28fb9f9f8 add amp emul files 2 недель назад
artifacts ac14de715f rebuild namv2 1 неделя назад
build ac14de715f rebuild namv2 1 неделя назад
config ac14de715f rebuild namv2 1 неделя назад
scripts 8aad945e00 fix audio 1 неделя назад
tests 8aad945e00 fix audio 1 неделя назад
.dockerignore 479aca126f arm builder for sooperlooper et mod-host 2 недель назад
.gitignore 5a7cbdfa6a config mix 2 недель назад
AGENTS.md 57cbcfc080 modui 1 неделя назад
README.md 8aad945e00 fix audio 1 неделя назад

README.md

Rigforge

Scope

Rigforge is a standalone Raspberry Pi audio pedalboard. The desired routing is described in config/desired-state.yaml. Hardware-specific ports and operational settings remain provisional until tested on the target.

Current target observations

The current target reports Debian GNU/Linux 13.7, AArch64, and a Behringer UMC404HD 192k. ALSA advertises four capture and four playback channels. PipeWire 1.4.2 and WirePlumber are active in the logged-in jojo user session, with Linger=no.

PipeWire exposed four capture channels named capture_AUX0 through capture_AUX3 and four playback channels named playback_AUX0 through playback_AUX3. A four-channel 48 kHz recording was completed, with the guitar on physical input 1 appearing on capture_AUX0 and the microphone on physical input 3 appearing on capture_AUX2; the other channels were at noise floor during that test. A temporary PipeWire link from capture_AUX0 to playback_AUX0 produced audible guitar. The target owner reports that playback_AUX0 feeds output 1L and that Main Out L receives 1L with MIX set to PB and MONITOR set to A. The owner then added capture_AUX2 and confirmed hearing both guitar and microphone with a 128-frame quantum at 48 kHz; this is an initial successful low-latency listening test, not yet a sustained dropout or headroom measurement. Monitoring duplication and clipping headroom under summed sources and loop returns remain unverified. Guitar NAM model selection via the FCB is now covered by the target report below; SooperLooper MIDI/OSC behavior remains untested.

The target has aconnect, amidi, and oscsend; ALSA lists the UMC404HD MIDI port. On 2026-11-20 the owner ran the Rigforge MIDI bridge on the target and confirmed FCB1010 note messages on MIDI channel 1. The SooperLooper MIDI bindings and OSC availability remain unverified. amixer -D hw:2 scontents showed capture and playback controls at 0 dB; no mixer settings have been changed.

Target preparation recorded so far

Before collecting the target observations, the following commands were run on the current Raspberry Pi OS Lite installation:

sudo apt update
sudo apt upgrade
sudo apt install --no-install-recommends \\
  rtkit pipewire pipewire-jack wireplumber \\
  libspa-0.2-modules liblo-tools git \\
  librubberband2 lilv-utils libcairo2 python3-rtmidi libncurses6

This records the preparation already performed on rigforge and is a starting point for documenting a second Pi. It is not yet a verified, version-pinned rebuild procedure: package versions, additional runtime dependencies, audio configuration, and service setup still need to be confirmed before reusing it as a complete deployment recipe.

Repository layout

  • config/desired-state.yaml: versioned desired audio topology, mod-host boundary ports, and provisional target mapping.
  • config/midi-bindings.yaml: MIDI event-to-action mapping for the general MIDI bridge; SooperLooper bindings remain in their native .slb file.
  • config/pipewire/filter-chain.conf.d/rigforge-direct-mix.conf: eight-input mono mixer configuration, with four direct-source slots and four SooperLooper return slots.
  • config/sooperlooper/fcb1010.slb: supplied FCB1010 binding file, pending on-target verification.
  • build/arm64/: shared ARM64 build image and task scripts for SooperLooper, mod-host, and mod-ui; patch_mod_ui_rigforge.py reapplies Rigforge's port and WebSocket integration to the pinned source.
  • scripts/validate_desired_state.py: validates topology and routing invariants without changing the target.
  • scripts/observe_pipewire.py: read-only comparison by default, with explicit one-shot repair for declared missing links.
  • scripts/midi_action_bridge.py: translates declared ALSA MIDI note events into NAM model changes through mod-ui's WebSocket.
  • scripts/run_mod_ui_service.py: keeps mod-ui's backend session alive and repairs only its two missing guitar audio-boundary cables after pedalboard loads.
  • scripts/generate_mod_ui_pedalboard.py: generates the reference NAM→IR pedalboard from the YAML.
  • scripts/deploy.sh and scripts/deploy.py: scoped user-level installation, removal, reload, and explicit mod-ui reset of declared services and LV2 bundles.
  • tests/: unit tests for desired-state validation, PipeWire observation/reconciliation, pedalboard generation, MIDI WebSocket control, mod-ui audio-boundary repair, and deployment operations.
  • artifacts/sooperlooper/arm64/, artifacts/mod-host/arm64/, and artifacts/mod-ui/arm64/: generated binaries or runtime bundle, dependency reports, and build provenance; commit after reviewing licensing and repository size.

The YAML describes desired state; a control surface is not a second source of truth. The initial audio profile declares 48 kHz and a quantum of 128 frames, which was reported to sound good during a temporary target test. At 48 kHz, 128 frames is about 2.7 ms per period, not the end-to-end latency. This runtime value has not yet been made persistent or measured under sustained load; apply it temporarily on the target with pw-metadata -n settings 0 clock.force-quantum 128 and return to automatic selection with pw-metadata -n settings 0 clock.force-quantum 0. The mod-host boundaries and services are active on the target; the owner has now confirmed an audible NAM→IR path and MIDI model switching. Sustained stability, levels, and recovery after a restart still need verification.

Validate the desired-state file on the development PC with:

python3 scripts/validate_desired_state.py
python3 -m unittest discover -s tests -v

The validator checks that there are four distinct physical inputs, one four-channel looper with each source assigned once, a declared mix output, and no active or planned route from looper returns back to looper inputs. It is read-only and does not connect audio ports or modify the target.

For an initial read-only graph observation on a system with pw-link, run:

python3 scripts/observe_pipewire.py

The observer reads pw-link -l and compares only connections whose endpoints are explicitly listed under routing.managed_ports; expected edges go in routing.managed_links. Exact obsolete edges that may be removed by explicit reconciliation must be separately listed under routing.managed_unlinks. Rigforge manages the UMC guitar capture into the mod-host-input boundary, the mod-host-output boundary to the mixer and guitar looper input, other declared source/looper links, the mixer output, and the UMC MIDI bridge to SooperLooper. mod-ui owns the audio cables between the boundary ports and the NAM/IR plugins; those links are deliberately outside observer scope. WirePlumber's unrelated hardware links remain outside project management. The default command only reports differences and never changes the graph; declared removals appear as would-unlink, while all other unexpected links remain would-review.

An explicit one-shot mode can create missing declared links after checking that the source and destination ports exist, then remove only present links explicitly declared in routing.managed_unlinks:

python3 scripts/observe_pipewire.py --reconcile-once

This mode never removes an unlisted link, changes undeclared connections, or restarts services. It attempts declared additions first and removes explicitly listed stale links only after every desired managed link is visible; if any desired link remains missing, removals are deferred. An unavailable-port action names the missing endpoint and its expected direction; missing effect ports hint to check mod-host, and a missing sooperlooper:midi_in hints to check the SooperLooper service. It then re-reads the graph and reports remaining differences. Use it only during a safe test window: repaired or removed links can immediately change audio or MIDI control routing. Unit tests use simulated pw-link results.

The declared MIDI edge is a PipeWire graph connection from Midi-Bridge:UMC404HD 192k MIDI 1 (capture) to sooperlooper:midi_in. The latter is SooperLooper's JACK MIDI input; its engine feeds events through the loaded .slb bindings. This is separate from an ALSA sequencer aconnect subscription. Do not keep both paths active: duplicate MIDI events could execute a binding twice.

On 2026-11-18, the target owner deliberately removed the managed AUX2 capture-to-mixer link during a safe test. Observation reported that single link as missing. After updating rigforge to commit 83fb0a7, --reconcile-once requested the link, and the final check reported differences: []. A subsequent read-only observation also reported no differences, the microphone was confirmed audible again, and all 20 unit tests passed on the target. In a later target test, restarting filter-chain.service removed all three managed links; explicit --reconcile-once requested all three, and the final observer again reported differences: []. Audio audibility after this later repair was not reported. These tests verify one-shot repair on the current target, not continuous reconciliation or recovery when ports are unavailable. After any filter-chain service restart, run the read-only observer and, during a safe test window, explicitly reconcile if links are missing.

Candidate direct mix test

config/pipewire/filter-chain.conf.d/rigforge-direct-mix.conf defines a PipeWire builtin mixer with eight mono inputs, a single mono output, and an initial gain of 0.2 per input. The original four-input fragment was loaded on rigforge; its input and output nodes appeared in the graph. Manual links from capture AUX0 and AUX2 through mixer input ports AUX0 and AUX2 to playback AUX0 produced audible guitar and microphone together. Inputs 2 and 4 remain untested with instruments.

The installed PipeWire example documents loading fragments from ~/.config/pipewire/filter-chain.conf.d/ with pipewire -c filter-chain.conf, which is the command used by the current user service. The fragment was installed and tested in that user configuration without editing /etc or the packaged config:

target="$HOME/.config/pipewire/filter-chain.conf.d/rigforge-direct-mix.conf"
backup="$target.before-rigforge-test"
mkdir -p "$(dirname "$target")"
if test -e "$target"; then
    cp -a "$target" "$backup"
fi
install -m 0644 config/pipewire/filter-chain.conf.d/rigforge-direct-mix.conf "$target"
systemctl --user restart filter-chain.service

The test has already been performed on rigforge: filter-chain.service was active and exposed input ports rigforge.direct-mix.input:playback_AUX0 through playback_AUX3 and output port rigforge.direct-mix.output:capture_FL. The three links now declared in YAML were connected manually with pw-link; guitar on input 1 and microphone on input 3 were heard together through the mixer. Existing WirePlumber hardware links were left untouched.

Rollback the fragment and reload the filter service after the test:

if test -e "$backup"; then
    mv "$backup" "$target"
else
    rm -f "$target"
fi
systemctl --user restart filter-chain.service

This restarts only filter-chain.service, not the main PipeWire daemon. The fragment and three links have passed an initial target listening test, but the test is not a sustained load, dropout, four-instrument, or headroom test. If activation or sound behaves unexpectedly, first remove the test links, perform the rollback, verify the filter service is active, and do not repeatedly restart it. Repository tests check channel/gain declarations and observer comparisons; they do not replace target runtime measurements.

User-level deployment on rigforge

After a manual git pull --ff-only, run the deploy helper from any directory:

~/rigforge/scripts/deploy.sh install all
~/rigforge/scripts/deploy.sh install mod-host-ports
~/rigforge/scripts/deploy.sh install mod-host
~/rigforge/scripts/deploy.sh install mod-ui
~/rigforge/scripts/deploy.sh install sooperlooper
~/rigforge/scripts/deploy.sh install reconcile
~/rigforge/scripts/deploy.sh install midi-bridge

The helper accepts install|uninstall|reload plus reset mod-ui, and targets all|namlv2|lsp|dragonfly-reverb|pipewire|mod-host-ports|mod-host|mod-ui|reconcile|midi-bridge|sooperlooper. all deliberately excludes the audio-host/UI/MIDI services and reconciliation, which are opt-in. Install in dependency order: ports, mod-host, then mod-ui; the MIDI bridge follows mod-ui. The ports service requires /usr/bin/pw-loopback from the target PipeWire tools; verify it exists before installation. It reads versions, paths, URLs, and settings from config/desired-state.yaml; its deployment registry is stored under ~/.local/state/rigforge/, and any pre-existing unit backup is stored next to that unit. It does not use sudo or change files outside declared paths, adjacent backups, mod-ui's dedicated user-data directory, and the registry directory.

For PipeWire, install updates only the Rigforge filter fragment, applies the declared quantum as a runtime setting, and restarts filter-chain.service only when the fragment changes. It never restarts pipewire.service or WirePlumber. reload pipewire reapplies the quantum and restarts the filter-chain user service. This restart removes the filter-chain nodes and their graph links; the fragment recreates ports but not links. Reconciliation is a separate explicit target; installing mod-host alone does not install its timer. After a PipeWire/filter restart, inspect with python3 scripts/observe_pipewire.py. Uninstall removes only the unchanged managed fragment, restores a file that was present before the first install, returns quantum selection to automatic, and reloads the filter service. Local edits to managed files stop removal or replacement rather than being discarded. Runtime quantum is not persistent across a PipeWire daemon restart.

For NAM LV2, install namlv2 installs the tracked ARM64 bundle at artifacts/nam-lv2/arm64/current/neural_amp_modeler.lv2 under ~/.lv2/, verifies its build provenance, and records artifact and installed-tree fingerprints. Build it with the nam-lv2 task documented below. The pinned source remains v0.2.3; the Raspberry Pi 5 release archive is retained as source metadata but is not installed because its statically linked C++ runtime crashed while loading the declared A2 model on this target. The replacement is built with Debian 13's GCC and dynamically links the system libstdc++ and libgcc_s. The previous bundle is preserved at ~/.lv2/neural_amp_modeler.lv2.rigforge-backup and can be restored by uninstall namlv2. reload namlv2 does nothing; restart mod-host after installing or removing the plugin.

For LSP and Dragonfly Reverb, the YAML declares tags and release URLs, and the installer places only LV2 bundles in ~/.lv2/. LSP installs lsp-plugins.lv2; Dragonfly installs its Early Reflections, Hall, Plate, and Room Reverb bundles. LSP extraction requires 7z, 7zz, or 7za on PATH, with support for the compression methods used in the release; install or update that system package separately if needed. A listing or extraction error aborts the install before any bundle is changed. The installers hash archives for identity tracking, check archive paths and expected manifests, preserve existing same-name bundles for uninstall, and refuse to remove locally modified managed bundles. reload lsp and reload dragonfly-reverb do not restart an LV2 host; restart the host after installation or removal. The LSP mono impulse-response plugin was instantiated and used in the initial manual chain test; its libcairo2 dependency is included in target preparation. Other LSP plugins and Dragonfly runtime dependencies remain unverified on target.

SooperLooper service

install sooperlooper installs and enables an explicit systemd --user service; it is excluded from install all. The service runs the ARM64 artifact at artifacts/sooperlooper/arm64/current/sooperlooper through /usr/bin/pw-jack and loads config/sooperlooper/fcb1010.slb. The -l and -c arguments are rendered from the looper component's loop_count and channels_per_loop in config/desired-state.yaml (currently 1 and 4); -t is configured by deployment.sooperlooper.timeout_seconds (currently 30). The same build also produces the optional ARM64 slconsole OSC terminal client at artifacts/sooperlooper/arm64/current/slconsole; it is not installed or launched by the service.

After startup, the unit waits four seconds and sends /sl/0/set sf discrete_prefader 0 to 127.0.0.1:9951 with /usr/bin/oscsend. The delay, OSC endpoint, and discrete_prefader value are also declared in the desired state. This initializes the control expected by the FCB's volume bindings. The service itself does not create PipeWire links: the graph-wide observer/reconciler manages the declared audio routes and the UMC MIDI bridge to SooperLooper's JACK MIDI input.

./scripts/deploy.sh install sooperlooper
systemctl --user status rigforge-sooperlooper.service
journalctl -f _SYSTEMD_USER_UNIT=rigforge-sooperlooper.service

Install requires the built ARM64 artifact, the tracked .slb file, and target runtime dependencies including oscsend from liblo-tools. The helper preserves any prior unit file and refuses to overwrite or remove locally edited managed units. It does not use sudo or restart PipeWire/WirePlumber. The owner reports that the service is installed on rigforge; OSC initialization and service recovery still need target verification.

Remove the service with ./scripts/deploy.sh uninstall sooperlooper.

mod-host ports and mod-ui guitar board

install mod-host-ports, install mod-host, and install mod-ui are explicit targets and are deliberately excluded from install all. mod-host-ports starts two mono /usr/bin/pw-loopback boundaries: a PipeWire sink rigforge.mod-host-input with a paired source visible to mod-ui, and a sink visible to mod-ui paired with the source rigforge.mod-host-output. Rigforge's observer manages UMC capture → input sink and output source → guitar mixer/looper. mod-ui is configured to display one “Rigforge Mod-Host Input” and one “Rigforge Mod-Host Output” and owns the internal cables from input to NAM, NAM to IR, and IR to output. After each board load, run_mod_ui_service.py checks the two boundary-to-plugin links and uses pw-link only to add either exact missing edge; it never removes or changes other links. This supplements mod-ui's board graph because the visible boundary cables were not connected in PipeWire during target testing.

scripts/generate_mod_ui_pedalboard.py builds the reference bundle from the YAML: one NAM, one LSP mono IR, the Crunch TB and Vox AC30 assets, the declared NAM output level, and those three mod-ui-owned arcs. During install mod-ui, deployment copies the declared NAM models into Rigforge's dedicated MOD_USER_FILES_DIR/NAM Models/Rigforge directory and generates a target-specific bundle whose model path points there; the model copies are fingerprinted and removed only if unchanged when mod-ui is uninstalled. The reference bundle is also target-specific, fingerprinted, and protected from local edits. mod-ui then resumes its last saved board across restarts. ./scripts/deploy.sh reset mod-ui explicitly restores the generated reference and backs up any prior default board and last-state file as adjacent .rigforge-reset-backup paths.

The mod-host unit runs pw-jack mod-host -n -p 5555 -f 5556; it no longer runs configure_mod_host.py. The mod-ui service starts under pw-jack, opens a persistent local WebSocket session so the board loads even before a browser connects, and is the sole control/feedback client for mod-host. After each completed board load, this runner verifies that the guitar capture reaches the NAM input and the IR output reaches the output boundary, restoring only a missing exact connection. Install the ARM64 artifacts, NAM/LSP bundles, and the declared audio assets before activation. Sustained audio and recovery after a service restart still require on-target verification; the external boundary links remain observable by the graph observer.

Both mod-host TCP ports currently listen on all interfaces without authentication, retained by owner request. The mod-ui HTTP/WebSocket server is also reachable on the LAN for the browser UI. Restrict these endpoints before treating the setup as hardened. Keep the repository checkout at its installed path, since the user units refer to it.

FCB NAM model selection

config/midi-bindings.yaml maps MIDI Note On events on channel 1 (channel index 0) to actions, rather than storing plugin paths or commands in the controller configuration. Notes 6–9 select the declared guitar NAM models: Crystal Clean TB, Edge of Breakup TB, Crunch TB, and Overdriven TB. Note Off and Note On with velocity zero are ignored. Each selection declares Crystal Clean TB as its missing-file fallback. If both the requested model and fallback are unavailable, the bridge reports the error and leaves the currently loaded model unchanged.

The NAM model catalog and MIDI input/mod-ui WebSocket settings are declared in config/desired-state.yaml. Actions identify their target by chain and processor IDs; the bridge resolves the current NAM instance and sends a file-property patch_set through mod-ui, without opening mod-host's TCP socket. It sends the staged copy from mod-ui's user-files/NAM Models/Rigforge directory, not the source file in the checkout, so mod-ui can match the path to its selector entry and reflect MIDI changes. The pedalboard remains a single NAM→IR board; changing models does not load another board. SooperLooper’s config/sooperlooper/fcb1010.slb remains independent and unchanged.

The bridge uses Debian’s python3-rtmidi package, included in the recorded target-preparation command above. Check the configuration and inspect MIDI input names with:

python3 scripts/midi_action_bridge.py --check
python3 scripts/midi_action_bridge.py --list-ports

On 2026-11-20, the owner reported that --check found four valid bindings and --list-ports showed UMC404HD 192k:UMC404HD 192k MIDI 1 (ALSA port 16:0). Running the bridge manually selected all four models from notes 6–9 on channel 1; the owner reports that transitions were almost instantaneous. The configured substring UMC404HD matched the observed input. This verifies the manual NAM-selection path on the target, not unattended startup, USB-reconnect recovery, or SooperLooper control.

Run the bridge in the foreground for manual use:

python3 scripts/midi_action_bridge.py

The bridge keeps the existing ALSA MIDI input and Note On bindings, but connects to mod-ui at ws://127.0.0.1:8888/websocket; mod-ui issues the patch_set to its single mod-host connection and reports an acknowledgement. The bridge does not alter PipeWire links. To install and enable its user service explicitly:

./scripts/deploy.sh install midi-bridge
systemctl --user status rigforge-midi-bridge.service
journalctl --user -u rigforge-midi-bridge.service -f

The service retries MIDI-port discovery if the UMC is not yet available and restarts after an unexpected process failure. It is deliberately excluded from install all; it requires mod-ui, which in turn requires mod-host and the boundary-port service. Model selection changes the active NAM model for the running board; missing selections fall back to Crystal Clean. The user systemd manager must be active for the services to run; unattended boot startup without a login also requires user lingering. Remove services in reverse dependency order: midi-bridge, mod-ui, mod-host, then mod-host-ports.

Rigforge graph reconciliation

install reconcile separately installs and enables a systemd --user oneshot service and 15-second timer for all links in routing.managed_links, regardless of whether they belong to mod-host, SooperLooper, or another declared component. It is explicit and not part of install all; install mod-host does not install it. On each run it repairs declared links and removes only links explicitly listed in routing.managed_unlinks, deferring removals until all desired managed links are present. It never prunes other unexpected links. reload reconcile runs one reconciliation immediately; uninstall reconcile stops and removes the timer/service while restoring any prior unit files. The timer retries after graph changes such as a USB interface reconnect, but verifies topology only, not audio signal quality.

Inspect the timer and its journal with:

systemctl --user status rigforge-pipewire-reconcile.timer
journalctl --user -u rigforge-pipewire-reconcile.service -b

The owner reports enabling lingering with sudo loginctl enable-linger "$USER" so the user manager can run without an interactive login. Boot startup, dependency restart propagation, and USB unplug/replug recovery from the reconciliation timer require on-target verification. Mod-host installation refuses to start if either TCP port 5555 or 5556 is already occupied by an unmanaged/manual process; stop that process explicitly before retrying.

Inspect the service after installation with:

systemctl --user status rigforge-mod-host.service
journalctl --user -u rigforge-mod-host.service -b
systemctl --user status rigforge-mod-host-ports.service rigforge-mod-ui.service
journalctl --user -u rigforge-mod-ui.service -b

On the target, install pipewire applied quantum 128 and reported that the installed fragment was already current; the following observer reported no differences. A later reload pipewire applied the quantum and restarted the filter-chain service, after which observation found all three managed links missing. One-shot reconciliation requested each link, and the subsequent observer reported differences: []. This confirms the graph links were present after reconciliation, not that audio was audible. install all and uninstall all attempt all four targets and report an overall failure if any action fails. reload all restarts the filter-chain service and prints no-op messages for the LV2 plugins. Check the target afterwards with python3 scripts/validate_desired_state.py, python3 -m unittest discover -s tests -v, and python3 scripts/observe_pipewire.py.

Development PC

The development host can be Ubuntu AMD64 or WSL2 with Docker Buildx and ARM64 emulation available. The shared image under build/arm64/ uses Debian 13 ARM64 tools. Source URLs and tags are declared in config/desired-state.yaml and validated before each build. SooperLooper uses v1.7.9-mods.1, resolving to 946b92e342bfb31c731671463995d31daf79fc0e; mod-host uses v1.15.0.3371, resolving to 956e13e538a440a6ee87fd350e6b510ec5e7a1b6; mod-ui uses v1.15.0.3371, resolving to 391c1eddefaf9dd624c19f2cfd50efc3a3e83592.

Build the common image once from the rigforge repository root, then select a build task:

docker buildx build --platform linux/arm64 --load -f build/arm64/Dockerfile -t rigforge-arm64-build:debian13 .
docker run --rm --platform linux/arm64 --user "$(id -u):$(id -g)" -v "$PWD:/workspace" rigforge-arm64-build:debian13 sooperlooper
docker run --rm --platform linux/arm64 --user "$(id -u):$(id -g)" -v "$PWD:/workspace" rigforge-arm64-build:debian13 mod-host
docker run --rm --platform linux/arm64 --user "$(id -u):$(id -g)" -v "$PWD:/workspace" rigforge-arm64-build:debian13 mod-ui
docker run --rm --platform linux/arm64 --user "$(id -u):$(id -g)" -v "$PWD:/workspace" rigforge-arm64-build:debian13 nam-lv2

Use task all to build the four programs in sequence. The shared image contains the union of their compiler/runtime build dependencies; each task retrieves the source tag from YAML, records the resolved commit, builds only its target, checks runtime dependencies, and writes its artifacts and provenance under artifacts/<project>/arm64/current/. The NAM task deliberately avoids -static-libstdc++ from the upstream Pi release workflow and verifies a dynamic libstdc++ dependency. The SooperLooper task builds both sooperlooper and slconsole; the mod-ui task packages its pinned web app, ARM64 libmod_utils.so, and vendored Python requirements. It applies the upstream-documented Tornado compatibility adjustment, the SSL hostname backport needed by this Python 3.13 build, and the tracked Rigforge port-mapping/WebSocket patch from build/arm64/patch_mod_ui_rigforge.py (its hash is recorded in provenance). The build checks that it is running in an ARM64 Debian container. The NAM build refuses to overwrite existing artifact output; move it aside for review before rebuilding. Run the container with the host UID/GID as above so generated files remain accessible to the host user. To update a source version, change its corresponding deployment.*.tag, validate the YAML, then rerun the corresponding task. Buildx --load for one ARM64 platform and docker run --platform linux/arm64 need binfmt/QEMU on AMD64 hosts.

SooperLooper's tagged source does not define ARM64 atomics in libs/pbd/pbd/atomic.h or src/atomic.h; the build task injects GCC __atomic operations for AArch64 in its temporary clone, leaving the upstream source repository untouched. This local portability patch is recorded in provenance. The image only compiles; it does not deploy or run either program on the Pi. Successful compilation does not establish runtime compatibility: inspect dependencies and test on the target. Review upstream licenses and artifact size before committing generated binaries and provenance.

The mod-ui artifact is a runnable bundle at artifacts/mod-ui/arm64/current/. Its run-mod-ui launcher uses the system Python and the bundled Python dependencies, and stores mutable UI data under ~/.local/share/rigforge/mod-ui by default. To preview the web interface on the Pi without controlling the real audio backend, run it with the MOD development host enabled:

MOD_DEV_HOST=1 ~/rigforge/artifacts/mod-ui/arm64/current/run-mod-ui

From a phone on the same LAN, open http://<rigforge-LAN-IP>:8888/. Stop the foreground process with Ctrl-C. This is a UI-only preview: it does not install services, start the Rigforge boundary ports, or load the generated Rigforge board. The new mod-host unit template enables the feedback connection on port 5556, but this service/UI integration has not yet been tested on the target. mod-ui is licensed AGPL-3.0-or-later, with separate trademark restrictions for MOD branding. The build and this manual preview are not yet target-verified.

rigforge target

The filter-chain fragment is installed in the user configuration on rigforge, and filter-chain.service was restarted to load it. The user confirmed guitar and microphone are audible together through the filter. The guitar now has a tested NAM → cabinet-IR chain before mixer AUX0; the owner reported a pleasing crunch and no crackle during the initial listening test. The direct guitar bypass link is absent while the mod-host chain is connected. This is not a sustained load, dropout, headroom, or unattended-startup test. A brief mod-host CPU-load reading was about 42%; one pw-top snapshot showed no reported errors but does not establish stability.

The graph-wide rigforge-pipewire-reconcile.timer was subsequently enabled on the target. On 2026-11-20, its logs showed the UMC ports disappear during unplug and the missing AUX0/AUX2/playback links were requested again after reconnect; the final observer was clean. This verifies topology recovery in that test, not audible recovery or a signal-quality check.

A PipeWire restart on the same date propagated to mod-host through PartOf=, but the first mod-host launch failed with no jack playback ports. A later systemd retry started mod-host and configured the NAM/IR chain; subsequent reconciliation runs were clean. This demonstrates eventual recovery with a startup race and an audio interruption. scripts/wait_mod_host_ports.py has since been added locally to wait for hardware/mixer ports before launching mod-host; that guard is not yet deployed or target-verified.

On 2026-11-20, the direct mixer was expanded from four to eight mono inputs on the target, retaining AUX0–AUX3 for direct sources and adding AUX4–AUX7 for SooperLooper returns, all initially at gain 0.2. The target's observed ports confirmed the post-IR guitar branch into sooperlooper:loop0_in_1, capture AUX1–AUX3 into looper inputs 2–4, and the four loop0_out channels returning to mixer AUX4–AUX7. The direct post-IR guitar-to-AUX0 path remains connected. One-shot reconciliation completed with no remaining graph differences. This verifies links exist, not audible loop recording/playback or headroom with summed returns.

On 2026-11-21, MIDI Note 1 was observed at the UMC ALSA port but did not reach SooperLooper through the ALSA sequencer path. A temporary direct aconnect link made all .slb bindings work. The owner removed that link and tested the PipeWire graph edge from Midi-Bridge:UMC404HD 192k MIDI 1 (capture) to sooperlooper:midi_in; the bindings then worked through SooperLooper's JACK MIDI input. This PipeWire edge is now declared for observation and explicit reconciliation. Automatic restoration by this updated repository version has not yet been deployed or verified on the target.

The remaining target checks are:

  1. The read-only observer and one-shot repair have been tested on rigforge. Repairing one missing link restored the audible microphone path; after a later filter-chain service restart, reconciliation requested all three missing links and the observer reported no differences. The current local model tracks the external mod-host-input/mod-host-output boundary links; it deliberately does not track the NAM→IR cable. Do not run one-shot reconciliation against an older checkout: it could restore the dry guitar bypass.
  2. Test direct mixer inputs 2 and 4 with sources when available; their direct-to-mix routes remain unverified. Looper capture inputs 2–4 are now linked but have not been tested with instruments.
  3. Measure sustained stability and headroom at 48 kHz / 128 frames with all active sources; the current ERR = 0 observation was brief.
  4. Verify automatic restoration of the two mod-ui audio-boundary links after the runner update is activated by a future mod-ui restart; then verify UI edits across restart, explicit reset, and recovery after unplug/replug.
  5. The owner manually verified FCB notes 6–9 through the old direct mod-host bridge. On 2026-11-23, the upstream Raspberry Pi 5 NAM LV2 binary crashed with SIGSEGV in NeuralAudio::NAMIsA2 while parsing the declared A2 SlimmableContainer model (version 0.7.0), both from the mod-ui picker and the new WebSocket bridge. Rebuilding the same v0.2.3 sources on Debian 13 with GCC 14 and a dynamic system libstdc++ avoided the crash. A follow-up exposed that the MIDI bridge sent checkout paths rather than mod-ui's staged user-file paths: mod-host accepted the change, but the selector stayed at “choose a NAM model.” The bridge now sends the verified staged copy. On 2026-11-23, note 9 was retested and the open mod-ui page displayed Vox_AC15CH_Overdriven_TB.nam; mod-host and mod-ui had zero restarts. The original shared object is preserved in ~/.lv2/neural_amp_modeler.lv2.rigforge-backup. During the guitar-audio test, capture AUX0 had RMS 0.081, while NAM output was exactly zero; the actual PipeWire links from boundary capture → NAM input and IR output → boundary playback were missing even though the mod-ui cables were visible. Adding those two exact links produced NAM-output RMS 0.0255 and mixer-output RMS 0.0102, and the owner confirmed the speaker was audible. The automatic repair is tracked in scripts/run_mod_ui_service.py and has been copied to the target checkout, but the running service has not been restarted; it will take effect at the next mod-ui start/load. The currently active target links were added manually. This verifies an audible path and model/UI switching, not sustained stability or headroom. SooperLooper's supplied FCB1010 bindings were also tested successfully over the declared PipeWire MIDI edge. Unattended startup, OSC initialization, and the persistence/effect of discrete_prefader 0 remain unverified.

Do not treat planned packages, commands, ports, or service settings as target-validated until these checks have been performed.

Deployment and rollback

Deployment is manual: inspect and test a change, then use git pull on rigforge only when the change is ready. No CI/CD or auto-pull is configured. The previously installed mod-host service and reconciliation timer reflect the older direct-configuration architecture. The new loopback boundaries, mod-ui service, feedback pairing, and WebSocket MIDI path are local and have not been deployed or verified on the target. Keep the last known working revision available; do not apply unverified audio or service changes during live use.