Browse Source

default is clean nam

Johan Le Baut 1 week ago
parent
commit
b1645b02ab

+ 1 - 1
README.md

@@ -148,7 +148,7 @@ Remove the service with `./scripts/deploy.sh uninstall sooperlooper`.
 
 `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, one LSP mono IR, the Crunch TB and Vox AC30 assets, the declared NAM output level, the guitar NAM→IR chain, and three mod-ui-owned passthrough 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.
+`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 declared NAM output level, the guitar NAM→IR chain, and three mod-ui-owned passthrough 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. 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.
 

+ 1 - 1
config/desired-state.yaml

@@ -257,7 +257,7 @@ routing:
           mod_ui_instance: /graph/rigforge_nam
           bundle_path: .lv2/neural_amp_modeler.lv2
           file_property: http://github.com/mikeoliphant/neural-amp-modeler-lv2#model
-          asset_path: amp_emul/amphead/VOX_AC15/Vox_AC15CH_Crunch_TB.nam
+          asset_path: amp_emul/amphead/VOX_AC15/Vox_AC15CH_Crystal_Clean_TB.nam
           available_models:
             crystal_clean_tb: amp_emul/amphead/VOX_AC15/Vox_AC15CH_Crystal_Clean_TB.nam
             edge_of_breakup_tb: amp_emul/amphead/VOX_AC15/Vox_AC15CH_Edge_of_Breakup_TB.nam

+ 1 - 1
scripts/validate_desired_state.py

@@ -66,7 +66,7 @@ def validate_mod_host_chain(routing, source_by_id):
             "mod_ui_instance": "/graph/rigforge_nam",
             "bundle_path": ".lv2/neural_amp_modeler.lv2",
             "file_property": "http://github.com/mikeoliphant/neural-amp-modeler-lv2#model",
-            "asset_path": "amp_emul/amphead/VOX_AC15/Vox_AC15CH_Crunch_TB.nam",
+            "asset_path": "amp_emul/amphead/VOX_AC15/Vox_AC15CH_Crystal_Clean_TB.nam",
             "input_port": "effect_0:input",
             "output_port": "effect_0:output",
         },

+ 1 - 1
tests/test_configure_mod_host.py

@@ -90,7 +90,7 @@ class ModHostConfigurationTests(unittest.TestCase):
         self.assertTrue(result["bypass_disconnected"])
         self.assertIn(
             "patch_set 0 http://github.com/mikeoliphant/neural-amp-modeler-lv2#model "
-            + str(ROOT / "amp_emul/amphead/VOX_AC15/Vox_AC15CH_Crunch_TB.nam"),
+            + str(ROOT / "amp_emul/amphead/VOX_AC15/Vox_AC15CH_Crystal_Clean_TB.nam"),
             control_commands,
         )
         self.assertIn(

+ 1 - 1
tests/test_deploy.py

@@ -680,7 +680,7 @@ class DeploymentTests(unittest.TestCase):
             deploy.read_registry()["mod_ui"]["reference_bundle"]["destination"]
         )
         ttl = (reference / "rigforge-guitar.ttl").read_text(encoding="utf-8")
-        self.assertIn(str(model_root / "Vox_AC15CH_Crunch_TB.nam"), ttl)
+        self.assertIn(str(model_root / "Vox_AC15CH_Crystal_Clean_TB.nam"), ttl)
 
         deploy.deploy_mod_ui("uninstall", config, deploy.read_registry())
         self.assertFalse(model_root.exists())