Rigforge is a Raspberry Pi audio pedalboard project. Treat this repository as a desired-state model plus a small set of tested candidates and read-only tools, not as a finished deployable system. Hardware routing and operational settings remain partly provisional. The root README.md is the authoritative record of current target observations, validation status, test procedure, and rollback details; check it before changing target-facing configuration.
The current target is Debian GNU/Linux 13 on AArch64 with a Behringer UMC404HD 192k, PipeWire, and WirePlumber. Guitar on physical input 1 and microphone on input 3 have been heard through the candidate mixer. The target owner also reports an initial guitar test through the Vox AC15 NAM model and Vox AC30 cabinet IR with pleasing crunch and no crackles. Sustained stability, headroom, remaining inputs, looper integration, MIDI bindings, and automatic service startup are not verified. Do not turn reported or candidate settings into claims of verified behavior.
config/desired-state.yaml is the central YAML description of the intended components, four mono sources, looper channel assignments, mix, the guitar NAM/cabinet chain, planned/forbidden connections, and the exact PipeWire links currently tracked for observation.config/pipewire/filter-chain.conf.d/rigforge-direct-mix.conf is a PipeWire filter-chain fragment with four mono mixer inputs, one mono output, and initial gain 0.2 per input. It defines the processing graph and ports, but does not create links to hardware or implement the looper graph.scripts/validate_desired_state.py checks the YAML's four-source/physical-input model, single four-channel looper, source-to-channel assignments, mix declaration, and prohibition on routing looper returns back to looper inputs.scripts/observe_pipewire.py validates the state and managed endpoint declarations, reads pw-link -l, and compares observed links against explicitly managed ports and links. Observation is the default; one-shot reconciliation and the opt-in timer create only declared missing links and remove only declared stale links.scripts/configure_mod_host.py loads the YAML-declared NAM and LSP IR instances and guitar links for the user service config/systemd/user/rigforge-mod-host.service.in.config/systemd/user/rigforge-pipewire-reconcile.service.in and .timer.in define periodic link reconciliation after mod-host is installed.scripts/deploy.sh dispatches scoped user-level install/uninstall/reload actions for YAML-declared PipeWire, LV2 bundles, and the mod-host service/timer through scripts/deploy.py. mod-host is an explicit target, not part of all.tests/ contains Python unittest tests for state validation, observation/reconciliation, mixer configuration, mod-host startup configuration, and simulated deployment operations. These validate repository-level invariants, not live audio behavior.config/sooperlooper/fcb1010.slb is supplied controller configuration, pending target verification. No SooperLooper build definition or artifact is present.The YAML is the source of truth for desired topology. The observer's scope is deliberately narrower: it compares links only when both endpoints are listed in routing.managed_ports. Keep unrelated WirePlumber-managed hardware links out of scope. Managed endpoint names are constrained by an explicit allowlist pattern in the observer, so a new port naming scheme must be deliberately reviewed and tested there as well as declared in YAML.
Run from the repository root:
python3 scripts/validate_desired_state.py
python3 scripts/validate_desired_state.py path/to/desired-state.yaml
python3 -m unittest discover -s tests -v
The validator defaults to config/desired-state.yaml; it exits nonzero for invalid state or load errors. The tests use the standard library unittest runner and import PyYAML (yaml); there is no dependency manifest or separate build/lint configuration in the repository.
On a target with pw-link and the logged-in PipeWire session available, run the read-only observer with:
python3 scripts/observe_pipewire.py
python3 scripts/observe_pipewire.py --state path/to/desired-state.yaml
The observer invokes pw-link -l itself. It never creates or removes links. A clean test run does not verify physical port mappings, sustained performance, clipping headroom, or hardware operation; those require target checks described in README.md.
guitar, bass, voice, synth) and physical inputs 1–4, each once, unless the validator and its tests are intentionally updated along with the model.routing.managed_ports, and names must match the observer's approved endpoint pattern. Use concrete observed PipeWire ports rather than logical aliases. The current effect allowlist is limited to the declared effect_0 NAM and effect_1 IR ports.planned and observed; both are compared against the current graph. Only declare real target observations as observed.config/desired-state.yaml. The deploy helper must remain scoped to declared user paths, preserve and restore prior files, refuse destructive actions after local modifications, and never restart the main PipeWire or WirePlumber service as a generic update.--reconcile-once and the opt-in mod-host user timer may create declared missing links and remove only exact links listed in routing.managed_unlinks; they must defer removals until all desired managed links are present, must not alter other connections, and must not restart PipeWire/WirePlumber. Retain tests for simulated repair, safe removal, deferral, and post-check behavior.0.2 is an initial conservative value, not a calibrated level or clipping guarantee. Test summed sources and loop returns on hardware before live use.unittest style. Tests construct modified state with deep copies so cases do not contaminate shared fixtures.yaml.safe_load; keep changes compatible with the validator's explicit structural/type checks.filter-chain.conf.d fragment is loaded by the separate filter-chain process (pipewire -c filter-chain.conf on the current target), not automatically by the main PipeWire daemon. It defines nodes/ports, not connections. Target service installation and restart steps are specific to the README's current test and should not be treated as an established deployment recipe.install mod-host activates audio routing and is intentionally excluded from install all. The current mod-host build listens on 0.0.0.0:5555 without authentication by owner request; do not change that policy silently, and retain the security warning in documentation.La machine rigforge est accessible depuis ce PC avec :
ssh -i ~/.ssh/id_ed25519 jojo@192.168.8.178
Demander mon accord avant toute connexion SSH. Ne pas modifier la machine distante sans autorisation explicite.