|
|
5 dias atrás | |
|---|---|---|
| amp_emul | 2 semanas atrás | |
| artifacts | 5 dias atrás | |
| build | 5 dias atrás | |
| config | 5 dias atrás | |
| scripts | 5 dias atrás | |
| tests | 5 dias atrás | |
| .dockerignore | 2 semanas atrás | |
| .gitignore | 2 semanas atrás | |
| AGENTS.md | 1 semana atrás | |
| README.md | 5 dias atrás | |
| wifi_hotspot | 1 semana atrás |
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.
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.
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.
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: nine-input mono mixer implemented as two cascaded eight-input-capable mixer stages, with four direct-source slots, four returns from the first loop, and one return from the second loop.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; mod-ui remains the sole owner of pedalboard connections.scripts/generate_mod_ui_pedalboard.py: generates the reference guitar NAM→IR and microphone-processing 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, SLWeb source files, and LV2 bundles.tests/: unit tests for desired-state validation, PipeWire observation/reconciliation, pedalboard generation, MIDI WebSocket control, the mod-ui/PipeWire boundary bridge, 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 audio profile now declares 48 kHz and a quantum of 256 frames, selected by the owner after a temporary target test. At 48 kHz, 256 frames is about 5.3 ms per period, not the end-to-end latency. The PipeWire deployment installs a user unit that reapplies this declared runtime quantum whenever pipewire.service starts or restarts. This unit is installed on the current target; its behavior on a subsequent engine restart and sustained stability still need verification. To apply it manually, use pw-metadata -n settings 0 clock.force-quantum 256; return to automatic selection with pw-metadata -n settings 0 clock.force-quantum 0. The target has the working one-channel guitar NAM→IR setup and MIDI model switching. The proposed four-channel mod-ui boundaries described below are a local desired-state change and have not been deployed or tested on the target. 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 SooperLooper instance with two four-channel loops, all sources assigned once to the first loop (loop0 ports), and only the second loop's (loop1) first output routed to the mix. The second loop's inputs remain unconnected. The validator also checks the declared mix output and prohibits looper returns from feeding loop 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. The desired graph manages each UMC capture into the matching mod-host-input channel and each mod-host-output channel to its direct-mix and first-loop destinations, plus all four first-loop returns, second-loop output 1 to AUX8, mixer output, and UMC MIDI to SooperLooper. The second-loop input ports are in observation scope so unexpected connections can be reported, but no links to them are desired. mod-ui owns the internal boundary-to-plugin and bass/voice/synth passthrough cables; 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.
config/pipewire/filter-chain.conf.d/rigforge-direct-mix.conf defines a PipeWire builtin mixer with nine 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.
rigforgeAfter 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 slweb
~/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|slweb. all deliberately excludes the audio-host/UI/MIDI services, reconciliation, and SooperLooper services, which are opt-in. Install in dependency order: ports, mod-host, then mod-ui; the MIDI bridge follows mod-ui. Install SooperLooper before SLWeb. 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, the dedicated mod-ui and SLWeb user-data directories, and the registry directory.
For PipeWire, install updates only the Rigforge filter fragment, applies the declared quantum, and installs/enables rigforge-pipewire-quantum.service. That oneshot is ordered after and tied to pipewire.service, so the desired quantum is reapplied at engine startup/restart without restarting PipeWire or WirePlumber during deployment. filter-chain.service is restarted only when its fragment changes. reload pipewire reapplies the quantum and restarts the filter-chain user service. This filter-chain restart removes its nodes and 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 unchanged managed files, restores prior files, disables the quantum unit, returns quantum selection to automatic, and reloads the filter service. Local edits to managed files stop removal or replacement rather than being discarded.
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 original bundle is preserved outside Lilv's search path at ~/.local/state/rigforge/namlv2-backups/neural_amp_modeler.lv2.rigforge-backup, so it cannot shadow the active plugin; uninstall namlv2 restores it. Legacy adjacent backups are migrated there by install 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.
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 2 and 4); SooperLooper therefore exposes four channels on both loops, although only the second loop's output 1 is routed to the direct mix and none of its inputs are connected. -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.
install slweb downloads the tools/ directory from the SooperLooper source archive declared by deployment.sooperlooper.source_url and .tag; it does not compile or replace either SooperLooper binary. The installed tree is kept at ~/.local/share/rigforge/sooperlooper-slweb/, including the web assets. Its user unit requires and starts after rigforge-sooperlooper.service, and follows that service's stop/restart lifecycle. The Python server sends OSC to 127.0.0.1:9951 and binds HTTP to 0.0.0.0:8080; open http://<rigforge-LAN-IP>:8080/ from a device on the network.
Security: SLWeb has no authentication. Any client that can reach port 8080 can control SooperLooper, including recording, overdubbing, muting, loading, or removing loops. Use only on a trusted, restricted network; do not forward this port to the Internet. To return to local-only access, change deployment.slweb.http_host to 127.0.0.1 and update validation before reinstalling.
./scripts/deploy.sh install slweb
systemctl --user status rigforge-slweb.service
journalctl --user -u rigforge-slweb.service -b
Remove SLWeb before SooperLooper with ./scripts/deploy.sh uninstall slweb. The deploy helper fingerprints the downloaded tools, preserves a pre-existing install directory and service unit, and refuses to overwrite/remove locally modified managed files.
install mod-host-ports, install mod-host, and install mod-ui are explicit targets and are deliberately excluded from install all. The desired four-channel mod-host-ports service starts a four-channel PipeWire input boundary (rigforge.mod-host-input with paired source rigforge.mod-host-input.capture) and a four-channel output boundary (rigforge.mod-host-output.playback with paired source rigforge.mod-host-output). Channel positions AUX0–AUX3 align with UMC capture channels 1–4. Rigforge's observer manages each UMC capture → input sink edge and each output source → its mixer/looper destinations. The generated mod-ui board shows the guitar path through NAM and IR, plus direct bass, microphone, and synth passthrough cables from capture_2..4 to playback_2..4. mod-ui handles Connect/Disconnect for all boundary cables through the Rigforge PipeWire bridge; NAM→IR stays a normal mod-host connection. The service runner does not repair or override pedalboard links.
scripts/generate_mod_ui_pedalboard.py builds the reference bundle from the YAML: one NAM defaulting to Vox AC15 Crystal Clean TB, one LSP mono IR using the Vox AC30 asset, the guitar NAM→IR chain, a microphone channel-3 chain (LSP high-pass, compressor and de-esser, then Dragonfly Room reverb with the dry signal retained), plus direct-through bass and synth arcs. The voice-chain settings are conservative starting points only and require listening and level adjustment on target. 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 resumes its last saved board across service restarts within the same boot. ./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.
On each system boot, rigforge-mod-ui.service runs scripts/prepare_mod_ui_pedalboard.py before launching mod-ui. It regenerates and validates the content-addressed reference bundle from the checkout, replaces the mutable default.pedalboard with that clean board, and moves any previous default and last-state file into mod-ui/boot-backups, outside the pedalboard scan directory. It also migrates older Rigforge backups out of that scan directory. A marker under the user runtime directory makes this happen only once per boot; a mod-ui service restart during the same boot preserves in-session changes. The Rigforge service uses a dedicated last-rigforge.json state file so upstream last.json state cannot redirect startup to an unrelated board. If generation or validation fails, mod-ui does not start with a blank board. The service waits for mod-ui to report that it loaded the prepared default board, then verifies the guitar PipeWire boundary links before reporting readiness. This behavior is covered by repository tests but has not yet been deployed or verified on the target.
If install mod-ui refuses a changed but registry-managed reference bundle, first inspect why it differs. To explicitly replace only that bundle while preserving its current contents, use ./scripts/deploy.sh install mod-ui --force-reference; the old bundle is retained in an adjacent .rigforge-force-backup path. This flag does not override local edits to the systemd unit, model files, or other managed 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. Its boundary bridge maps four visible input/output pairs to PipeWire and applies only explicit UI Connect/Disconnect operations. Install the ARM64 artifacts, NAM/LSP bundles, and declared audio assets before activation. Sustained audio and recovery after a service restart still require on-target verification; external UMC/boundary/mixer/looper 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.
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.
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
For recovery testing, scripts/reset_engine.py performs an explicit full reset of the logged-in user's audio engine. It restarts pipewire.service and wireplumber.service, which drops the current PipeWire graph, and then restarts Rigforge services that were enabled or active, along with any required dependencies. It preserves service enablement choices and starts components in dependency order. If mod-ui is deployment-managed, it restores the generated reference pedalboard and preserves the previous default board and last-state file, when present, as adjacent .rigforge-reset-backup files.
Run it on the target from the Rigforge checkout:
python3 scripts/reset_engine.py
The command refuses to run unless the machine hostname matches the desired-state target, and prompts before interrupting audio; --yes skips the prompt. It pauses the reconciliation timer during the reset, waits for dependent services through their readiness checks, reconciles the declared links once, and checks the resulting graph before restarting the timer. If a reset step fails, it exits nonzero, leaves the timer stopped, and may leave services stopped for inspection. It does not enable or disable units, alter unrelated link policy, or manually remove arbitrary links. Restarting PipeWire nevertheless drops all graph links; clients outside Rigforge must reconnect themselves. SooperLooper's in-memory recordings/playback may be lost. A clean graph check verifies topology only, not audible signal or stability. This is an intentionally disruptive recovery tool and has not been verified on the target.
On the target, install pipewire initially 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. On 2026-11-24, the owner selected 256 frames as the desired quantum after a temporary runtime test. A short pw-top sample at 256 showed about 1.4 ms WAIT and no ERR-counter increase between the sampled updates; sustained stability, headroom, and long-term listening comparison remain unverified. 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.
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. The currently tracked SooperLooper binary was built from abarker/sooperlooper-mods tag v1.7.9-mods.1 (commit 946b92e342bfb31c731671463995d31daf79fc0e); SLWeb now uses jojolb/sooperlooper-mods tag v1.7.9-mods.1-slweb.4. Deploying SLWeb only downloads that tag's tools/ directory and does not rebuild the binary. 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 targetThe 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-25, the second four-channel SooperLooper loop was installed on the target for beat playback. SooperLooper runs with -l 2 -c 4; only sooperlooper:loop1_out_1 is connected to direct-mix AUX8. The second loop's four inputs and outputs 2–4 have no links. Because PipeWire's builtin mixer supports at most eight inputs per node, the nine-input direct mix uses the original eight-input mixer followed by a two-input mixer stage; AUX8 has an initial gain of 0.2. Both services are active, pw-link -l shows the new return, and the read-only observer reports no differences. This confirms topology only; WAV loading/playback, audibility, and output headroom still need testing.
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:
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.pw-top sample was brief and does not establish dropout-free operation.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. 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. A temporary direct pw-link repair produced NAM-output RMS 0.0255 and mixer-output RMS 0.0102, and the owner confirmed the speaker was audible. That workaround left UI state out of sync, so the startup repair was removed from scripts/run_mod_ui_service.py. A local mod-ui integration patch now directs only the capture_1/playback_1 boundary cable operations through PipeWire; NAM→IR remains owned by mod-host. On 2026-11-23, after restarting only mod-ui, its Connect/Disconnect handlers successfully removed and recreated both exact boundary links, matching pw-link; the observer was clean and neither mod-host nor PipeWire restarted. The owner later confirmed the guitar sound worked well. The UI showed the saved Vox_AC15CH_Crunch_TB.nam selection. Hearing the guitar after this restart, persistence across further restart/reset, physical FCB selection after the NAM bundle migration, sustained stability, and headroom remain to be verified. A later UI selection crash was captured in GDB and showed NeuralAudio::NAMIsA2 executing from the preserved original bundle under ~/.lv2/neural_amp_modeler.lv2.rigforge-backup, not from the GCC 14 candidate. This revealed Lilv scanning the adjacent backup. The original bundle has now been moved to ~/.local/state/rigforge/namlv2-backups/neural_amp_modeler.lv2.rigforge-backup; the deployment registry retains its SHA-256 and restore path. 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 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 guitar boundary Connect/Disconnect integration has been exercised on the target, but the four-channel boundary and passthrough pedalboard changes described in this checkout still need safe deployment and verification. This does not verify sustained audio stability, headroom, startup after reboot, or all FCB/MIDI behavior. Keep the last known working revision available; do not apply unverified audio or service changes during live use.