[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107760":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":24,"topics":25,"createdAt":9,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":30,"discoverSource":31},107760,"hx-stomp-nam-lite","nocaseguy\u002Fhx-stomp-nam-lite","nocaseguy","This repository adds Neural Amp Modeler (NAM) A2 Lite to the stock Line 6 HX Stomp, HX Stomp XL, HX Effects firmware, version 3.80.0, as a new amp model. NAM captures then run on the Stomp's own DSP, like any other amp block.",null,"Python",130,48,10,4,0,2,12,70,11,62.07,"GNU General Public License v3.0",false,"main",true,[],"2026-11-18 12:27:19","2026-11-23 14:34:45","# NAM A2 Lite for the HX Stomp, HX Stomp XL and HX Effects\n\nThis repository adds **Neural Amp Modeler (NAM) A2 Lite** to the stock Line 6 firmware 3.80.0 of the HX Stomp, HX Stomp XL and HX Effects. NAM captures then run on the unit's own DSP, like any other block, with a tone stack after the model.\n\n**Not a programmer? Use the setup page: [nocaseguy.github.io\u002Fhx-stomp-nam-lite\u002Fweb\u002F](https:\u002F\u002Fnocaseguy.github.io\u002Fhx-stomp-nam-lite\u002Fweb\u002F).** It builds the firmware from your own Line 6 file, converts your captures and guides you through every step, all in your browser, with nothing to install and nothing uploaded. See [The setup page](#the-setup-page-no-install).\n\n## Supported devices\n\n| Device | Stock firmware (the build checks its MD5) | NAM A2 Lite in the menu | Status |\n|---|---|---|---|\n| **HX Stomp** | `HX_Stomp_v3.80.0_0x103966115.hxf`\u003Cbr>`a2cd8f4ae56f49415380270ebc484bf1` | Amp → NAM | **Runs.** This build ran on an HX Stomp from RAM: the on-device test suite passed (48 cases: one to three NAM blocks, both paths, every stock effect category beside NAM, model and preset changes) and every band of the tone stack was measured on the unit. |\n| **HX Stomp XL** | `HX_Stomp_XL_v3.80.0_0x103966115.hxf`\u003Cbr>`329e3a26d60d3de1988b6785fa833ee1` | Amp → NAM | **NAM runs on an XL** (photo below). This ten-knob build has not run on an XL yet; its DSP program, model list and DSP graphs are byte for byte the HX Stomp's. |\n| **HX Effects** | `HX_Effects_v3.80.0_0xd97239907.hxf`\u003Cbr>`7c2ebdf1bffb6bcc5f89dda97f91e40c` | Distortion → Mono | **Runs.** An owner ran it on an HX Effects, with the browser and knob pop-up fixes. See [HX Effects](#hx-effects). |\n\nNot the Helix Floor, LT or Rack: their firmware is a different design. Only firmware 3.80.0: the build refuses any other file.\n\n[![An HX Stomp XL showing Amp → Guitar, Bass, NAM](docs\u002Fhx-stomp-xl-amp-nam.jpg)](docs\u002Fhx-stomp-xl-amp-nam.jpg)\n\n*An HX Stomp XL running NAM A2 Lite: the Amp menu with its NAM folder. Photo: Med Hamza.*\n\n## Demo\n\n[![NAM A2 Lite running on an HX Stomp (YouTube)](https:\u002F\u002Fimg.youtube.com\u002Fvi\u002FzQzj0qahJ6E\u002Fhqdefault.jpg)](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=zQzj0qahJ6E)\n\nWatch it on YouTube: https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=zQzj0qahJ6E\n\n> **Unofficial and experimental.** Not affiliated with, endorsed by or supported by Line 6 or Yamaha Guitar Group. Installing modified firmware is at your own risk and may void your warranty. Read [Install](#install) and [Recovery](#recovery) before you start.\n\n## What's new\n\n- **A tone stack after the model, ten knobs.** Bass (a 150 Hz shelf), Mid (a band you sweep from 150 Hz to 3 kHz, with Q 0.7, 1.4 or 2.8), Treble (a 2.5 kHz band) and High Cut (a low-pass). Each band is ±12 dB, flat at 5.0.\n- **Knobs in live order.** Page 1 is Input, Treble, Output: the gain, tone and level you reach for on stage.\n- **HX Effects support** (Distortion → Mono; runs on an HX Effects).\n- **HX Edit keeps NAM blocks.** NAM A2 Lite takes the place of a stock model HX Edit knows, now **Xenomorph Fuzz Mono**, with its knobs laid out like that model's, so HX Edit keeps the blocks and their settings when it rewrites a preset. HX Edit shows the block as \"Xenomorph Fuzz\". **MM4 Frequency Shifter**, which the four-knob build replaced, is back.\n- All NAM blocks count as effects: the two-amp limit doesn't apply to them.\n\n**Presets saved with an earlier NAM build don't open NAM A2 Lite in this one:** NAM now has another preset ID (555; it was 461, and 147\u002F148 before that). Re-add the block in those presets.\n\nEarlier changes are in [CHANGELOG.md](CHANGELOG.md).\n\n## What you get\n\n- **NAM A2 Lite** under **Amp → NAM** (HX Effects: **Distortion → Mono**), with ten knobs, in this order (the HX Stomp shows three a page):\n\n  | Page | Knob | What it does |\n  |---|---|---|\n  | 1 | **Input** | Input gain into the capture, −20 to +20 dB; 0 dB (the capture's own level) at 5.0 |\n  | 1 | **Treble** | A band at 2.5 kHz (Q 0.7): bite and pick attack. ±12 dB, flat at 5.0 |\n  | 1 | **Output** | Output level; 0 dB at 5.0, +12 dB at 10 |\n  | 2 | **Polarity** | Normal or Inverted. Inverted flips the output's polarity (phase), exactly. |\n  | 2 | **Bass** | A low shelf at 150 Hz. ±12 dB, flat at 5.0 |\n  | 2 | **Mid** | A band at Mid Freq, with Q. ±12 dB, flat at 5.0 |\n  | 3 | **Model** | Which capture plays: 1–128 is the User IR slot that holds it. A slot holding anything else (a cab IR, or nothing) is silent, and so is any number above 128 (the title then reads `\u003CEMPTY>`). One slot a click. |\n  | 3 | **Mid Freq** | Where the Mid band sits: 150 Hz to 3 kHz, 650 Hz by default |\n  | 3 | **Q** | The Mid band's width: 0.7 (wide), 1.4 or 2.8 (narrow) |\n  | 4 | **High Cut** | A low-pass filter: 10.0 is off (the default), down to 2 kHz at 0.0 |\n\n  The bands come after the model, so they work on any capture, guitar or bass. With every tone knob at 5.0 the block plays the capture exactly as it was captured.\n\n- **A converter** (on the [setup page](https:\u002F\u002Fnocaseguy.github.io\u002Fhx-stomp-nam-lite\u002Fweb\u002F), or `tools\u002Fnam2ir.py`) turns a `.nam` file into a `.wav`. HX Edit imports that `.wav` as a User IR. The \"IR\" is not a sound: it carries the capture's 1,871 weights, and the block loads them from the slot.\n\n- Up to three NAM A2 Lite blocks at once, each with its own capture.\n- The capture's name: on the HX Stomp and XL the block's title on the edit screen shows the name of the IR the Model knob selects (the knob itself shows the number); on the HX Effects, see [HX Effects](#hx-effects).\n\nEverything else in the firmware stays stock 3.80.0, except that the build removes **Xenomorph Fuzz Mono** to give NAM its place (Xenomorph Fuzz Stereo stays). A preset of yours that uses Xenomorph Fuzz Mono would open NAM A2 Lite in its place.\n\n## What this repository contains, and what it doesn't\n\n**No Line 6 code or data is in this repository**, and no firmware file is distributed. You need your own copy of the official firmware file. The build reads it on your computer, applies the changes and writes a new `.hxf` for you. Please don't share the built `.hxf`: it is Line 6's firmware with changes, and it isn't yours or ours to redistribute.\n\nWhat is here is our own work:\n- a SHARC assembler and simulator;\n- the NAM A2 Lite kernel, written from scratch in SHARC assembly;\n- a RAM loader that runs a build without installing it (C for the Stomp's Cortex-M4, and WebUSB for the page);\n- tools that read the firmware container and patch the model tables;\n- the offsets they patch.\n\n**No NAM captures are included.** You bring your own `.nam` files, and their licences are up to their authors.\n\n## Requirements\n\n- An **HX Stomp**, **HX Stomp XL** or **HX Effects** (see [Supported devices](#supported-devices)).\n- Line 6's firmware 3.80.0 for your unit, unchanged (the files and MD5s are in [Supported devices](#supported-devices)). The build refuses any other file.\n- Python 3.10 or newer with `numpy`: `pip install numpy`.\n- **Line 6 Updater** to install, and **HX Edit** to import captures.\n- 3-channel **A2 Lite** captures. A `.nam` with several sizes in one file (a SlimmableContainer) works too: its A2 Lite model is used.\n\n## The setup page (no install)\n\n**[NAM A2 Lite Setup](https:\u002F\u002Fnocaseguy.github.io\u002Fhx-stomp-nam-lite\u002Fweb\u002F)** walks you through everything below in your browser: it builds the firmware from your stock `.hxf`, tells you how to install it, converts your `.nam` captures and shows how to load them. Nothing is uploaded: the page runs this repository's own Python tools in the browser (with [Pyodide](https:\u002F\u002Fpyodide.org)), the same commands as `build.py` without the simulator check, and then compares the result with the tested build's MD5 (the one pinned in `tests\u002Ftest_firmware.py`). It says **Verified** only when every byte matches.\n\nThe page is `web\u002Findex.html`; GitHub Pages publishes it with `tools\u002F` (`.github\u002Fworkflows\u002Fpages.yml`). The build step needs the page served over http, so to run it from a copy of the repository: `python3 -m http.server`, then open `http:\u002F\u002Flocalhost:8000\u002Fweb\u002F`. The capture converter also works from the file itself.\n\n## Build\n\n```sh\npython3 build.py path\u002Fto\u002FHX_Stomp_v3.80.0_0x103966115.hxf\n```\n\nThis writes `build\u002FHX_Stomp_v3.80.0_NAM_A2_Lite.hxf` (from the XL's file `build\u002FHX_Stomp_XL_v3.80.0_NAM_A2_Lite.hxf`, from the HX Effects' `build\u002FHX_Effects_v3.80.0_NAM_A2_Lite.hxf`). It takes about 2 minutes, most of it the simulator check. On the HX Stomp and XL the build:\n\n1. Assembles the kernel and runs it in the SHARC simulator. Each block's output must match a reference NAM A2 implementation (`src\u002Fsharc\u002Fnam_a2.asm`) bit for bit, on its own capture and input trim, then the tone stack, op for op in 32-bit float (`--mid-sweep`: the Mid band's frequency and Q are computed on the DSP when a knob moves); the check also covers the crossfades, model changes, a fourth block, and the DMA that fetches the long rings and its failure path. Add `--no-check` to skip this step.\n2. Adds NAM A2 Lite (`STEPS` in `build.py`, the same on both units):\n   - removes Xenomorph Fuzz Mono from the model and menu tables, freeing its preset ID 555 (`remove-model`);\n   - adds NAM A2 Lite there as an effect: a DSP graph that runs the NAM kernel, its ten knobs in Xenomorph's order of value types, and each block its own DDR2 block (`add-fx-model --knobs eq`);\n   - lists it in a new **NAM** folder under Amp (`move-folder`);\n   - makes the block's title show the selected IR's name, read from the Model knob (`ir-title --knob 6`), with each unit's own addresses.\n3. Enlarges the DSP's graph buffer to fit the extra graph (part of the steps above).\n4. Adds the kernel to the DSP's boot code and hooks it to an unused DSP primitive.\n5. Recomputes and verifies every checksum: the container MD5, the archive Fletcher-32 and CRC-32, and the image CRCs.\n\nThe HX Effects build is the same block with that unit's own steps (`patch_amp.py effects-eq`, `tools\u002Feffects.py`); see [HX Effects](#hx-effects).\n\nThe results' MD5s are pinned in `tests\u002Ftest_firmware.py`:\n- HX Stomp `e6431a5f2ba4d86f1f7f9300506a1101`. That exact file ran on an HX Stomp from RAM and passed the project's on-device test suite; its tone stack was measured on the unit with a fixed test signal (Mid at +12 dB read +11.8 to +12.0 dB at 150 Hz, 220 Hz and 1.8 kHz, −12.0 dB at −12; Treble +11.9 dB at 2.5 kHz; High Cut at 0.0 −3.4 dB at 2 kHz), and checked by ear, sweeping Mid Freq and High Cut while playing.\n- HX Stomp XL `a53e185be36fb4e8feedb5f2b89a1505` (not run on an XL).\n- HX Effects `3a5b47d995c4af2319690bb4a6e8bd2f` (ran on an HX Effects).\n\nOnly 4 of the 15 parts of the firmware change: the main application (its model tables and the title code), the DSP program, the model list and the DSP graph library. **The bootloader is never touched**, which is what keeps [Recovery](#recovery) possible.\n\n## Try it first, from RAM\n\nOn the HX Stomp and XL you can run the built firmware from the unit's memory for one session before you install it (not on the HX Effects: the RAM loader is the Stomp's). Nothing is written to the Stomp, and turning it off and on brings back what is installed. The Stomp must have stock 3.80.0 installed.\n\n- **On the setup page:** step 3, **Run from RAM**, in Chrome or Edge. The browser asks you to pick a device three times as the Stomp restarts.\n- **From the command line:** hold Page Right while you power on, then\n  ```sh\n  dfu-util -d 1fc9:000c -a 0 -D tools\u002Framboot\u002Ffirmware-ramboot.dfu\n  python3 tools\u002Fhxf_ram.py run build\u002FHX_Stomp_v3.80.0_NAM_A2_Lite.hxf --stock HX_Stomp_v3.80.0_0x103966115.hxf\n  ```\n\nPresets and IRs you change during the run are lost at power-off. [RAM_RUN.md](RAM_RUN.md) explains how it works and its limits.\n\n## Install\n\n1. Back up your presets and IRs in HX Edit, then **close HX Edit**.\n2. Open Line 6 Updater, choose **Choose File**, and pick the file built for your unit (`build\u002FHX_Stomp_…`, `build\u002FHX_Stomp_XL_…` or `build\u002FHX_Effects_…`; never another unit's).\n3. Let it finish and restart the unit.\n\n\n### HX Stomp XL\n\nThe XL's firmware 3.80.0 is the Stomp's with another build of the main application: the DSP program, the model list and the DSP graph library, the three parts the patch changes besides the application, are byte for byte the same. `tools\u002Fpatch_amp.py` holds the XL's own addresses for the application's model tables, and checks each one against the table it points to.\n\n**NAM A2 Lite runs on an XL:** the photo in [Supported devices](#supported-devices), by Med Hamza, shows Amp → NAM on an HX Stomp XL. This ten-knob build has not run on an XL yet. Its block title reads the IR name with code written for the XL's own registers and addresses. The XL has the same Page Right button, so holding it while powering on should give update mode as on the Stomp. Keep the stock XL file ready for recovery.\n\n### HX Effects\n\n**Runs on an HX Effects** (an owner, who also fixed the browser listing and the knob pop-up: thank you, Jerry Chuang). It is the same block and kernel, checked the same way in the simulator; what differs is how it is put into that unit's application (`tools\u002Feffects.py`):\n- The HX Effects application refuses a model it doesn't already know, so NAM A2 Lite takes **Xenomorph Fuzz Mono**'s place in its tables (preset ID 555, as on the Stomp) instead of being added. It is listed under **Distortion → Mono**, in Xenomorph Fuzz Mono's place: the HX Effects has no Amp category, and its browser shows at most three folders a category.\n- The kernel reads the User IRs from where the HX Effects keeps them (`nam_multi.py --effects`).\n- **The capture's name** shows on the Model knob's own line (\"Model: name\") in the knob pop-up when you turn Model, as the HX Effects does for an IR block; Mid Freq and Q, on the same page, step aside while it shows. The scribble strips and the one-parameter view show Model's number.\n- No run from RAM: the RAM loader is the HX Stomp's.\n- **Recovery:** hold the right arrow (**>**) while powering on for fail-safe update mode, then install the stock `HX_Effects_v3.80.0_0xd97239907.hxf` with Line 6 Updater (Choose File).\n\nHX Effects support builds on **Scott's HX Effects port, [scottlynn73\u002Fhx-effects-nam-lite](https:\u002F\u002Fgithub.com\u002Fscottlynn73\u002Fhx-effects-nam-lite)**, which first ran NAM A2 Lite on an HX Effects: it found where the HX Effects keeps its User IRs and its model tables, and that a NAM block has to take over a stock model's identity there. Thank you, Scott.\n\n## Use\n\n1. Convert a capture. Either open the **[setup page](https:\u002F\u002Fnocaseguy.github.io\u002Fhx-stomp-nam-lite\u002Fweb\u002F)** (step 4) and drop your `.nam` files on it, or run:\n   ```sh\n   python3 tools\u002Fnam2ir.py \"My Amp.nam\" -o \"My Amp NAM.wav\"\n   ```\n   The web page converts several files at once. It runs entirely in your browser, uploads nothing, and writes the same bytes as `nam2ir.py`.\n\n   **Input level.** If the capture records its interface's level (`input_level_dbu` in the `.nam` metadata), the converter stores it in the `.wav`, and the web page shows it as a \"captured at … dBu\" chip. The amp then trims its input by `11.5 − input_level_dbu` dB, so that at Input 5.0 the Stomp's input drives the model the way the capture's interface did. 11.5 dBu is the Stomp's input at 0 dBFS as users have measured it (one unit read 15.1). It is a constant in the firmware (`STOMP_DBU` in `tools\u002Fsharc\u002Fnam_lite.py`), so a better figure needs only a firmware rebuild, not new `.wav` files. `--no-level` leaves the level out. Captures without the level, and `.wav` files from older converters, play untrimmed.\n2. In HX Edit, import the `.wav` into a User IR slot, for example slot 5.\n3. On the unit, add **Amp → NAM → NAM A2 Lite** (HX Effects: **Distortion → Mono**) and set **Model** (page 3) to 5. For a second capture, import it into another slot and add a second NAM A2 Lite block set to that slot.\n\nNotes:\n- The Model knob shows slot numbers. The block's title shows the name of the IR in that slot (the name HX Edit gave it).\n- Changing Model (by hand or in a snapshot) crossfades with no gap: the new capture fades in over about 5 ms while the last few milliseconds of the old one play backwards and fade out.\n- Presets store the slot number. If you move a capture to another slot, update the presets that use it.\n\n## Limits\n\n- **At most 3 NAM A2 Lite blocks in a preset**, each with its own capture. The kernel (`tools\u002Fsharc\u002Fnam_multi.py`) has 3 model slots; a fourth block would pass its input through. They are effect blocks, so the two-amp limit doesn't count them. Run on an HX Stomp with three blocks; the XL build has the same kernel and layout but has not run on an XL.\n  - Each block uses about **23% of the DSP** on the HX Stomp with its tone stack (an empty preset alone is about 20%), and declares a DSP cost of **2275**. The Mid band's frequency and Q are computed only when a knob moves, so they cost nothing while you play.\n  - **Three blocks leave room for one more light effect**; the Stomp greys out anything that doesn't fit. With two NAM blocks there is room for more.\n  - Each block takes its own 0x5000-word block of DDR2 for its long rings; the Amp blocks' DDR2 allowance is raised to fit.\n- **In HX Edit the block shows as \"Xenomorph Fuzz\"**, with that model's knob names: Gain is Input, Tone is Treble, Level is Output, Clipping is Polarity, OscLevel is Bass, OscTone is Mid, MinFreq is Model, MaxFreq is Mid Freq, WaveShape is Q, Sensitivity is High Cut. Editing those knobs in HX Edit works, under those names. Turning Model on the unit is clearer (the title shows the capture).\n- Only the 3-channel A2 Lite architecture fits; standard and A2 Full captures don't.\n- Names on the Stomp hold 16 characters at most.\n\n## Recovery\n\nIf an HX Stomp or XL stops at the splash screen after an install (HX Effects: see [HX Effects](#hx-effects)):\n\n1. Power it off. **Hold Page Right while powering it on.** It comes up in update mode, with the screen dark.\n2. In Line 6 Updater, choose **Choose File** and pick the stock `HX_Stomp_v3.80.0_0x103966115.hxf`.\n\nThis has been done on a real unit after a modified firmware hung at the splash, and it restored stock 3.80.0. It works because the bootloader is left untouched.\n\n## How it works\n\n- **The DSP.** The HX Stomp's audio runs on an Analog Devices SHARC ADSP-21469. The kernels are hand-written SHARC assembly, bit-exact with the reference:\n  - `tools\u002Fsharc\u002Fnam_multi_kernel.asm`: the WaveNet layers run two samples at a time in SIMD. The free internal memory is split into 3 slots, one model each; the long rings live in each block's own DDR2 block, and their taps are copied in by chained external-port DMA while the previous layer computes.\n- **No vendor toolchain.** `tools\u002Fsharc\u002Fsasm.py` assembles the code and `tools\u002Fsharc\u002Fssim.py` simulates it.\n- **Captures through the IR slots.** The Stomp already stores up to 128 User IRs of 2,048 samples and hands them to the DSP unchanged.\n  - `nam2ir.py` packs a capture's weights into those samples, behind a small header the kernel recognises.\n  - HX Edit refuses samples beyond about ±15.8, so the weights are scaled by a power of two, which is exact.\n- **The title.** The application shows an IR's name in the block title only for IR blocks. `patch_amp.py ir-title` turns the two places that test for an IR block into jumps to a few added instructions that also take that path for NAM A2 Lite's preset ID. It changes what the screen shows only: the parameter, its DSP value and presets are as before.\n- **HX Edit.** HX Edit keeps its own copy of the preset, built with its own model list, and for some edits writes that copy back whole: a block of a model it doesn't know is left out. `patch_amp.py remove-model` frees a stock model's preset ID (Xenomorph Fuzz Mono, 555; its code stays, nothing selects it), and `add-fx-model --knobs eq` puts NAM there with its ten knobs in that model's order of value types (HX Edit writes each value in its own model's type and range, and the unit drops a whole preset holding a value of another type). Model is a float knob from 0 to 1000, which the unit steps one slot a click; the kernel truncates it. `move-folder` lists the effect under Amp → NAM, and `ir-title --knob 6` reads the title's IR from that float knob.\n- **The tone stack.** After the model, four biquads in 32-bit float: Bass, Treble and High Cut take their coefficients from tables (101 steps a knob); the Mid band's are computed on the DSP when Mid, Mid Freq or Q moves (sine and cosine by series, a reciprocal by Newton steps), so the sweep is continuous. The simulator check runs them op for op against a Python model of the same arithmetic.\n- **The HX Effects.** `tools\u002Feffects.py`: NAM takes Xenomorph Fuzz Mono's place in the application's tables in place, as that application refuses new models, including its place in the browser's Distortion → Mono list. The name-on-knob display is patched at three instructions, each turned into a call to a few added instructions, which sit in room freed inside a model table the application reads only by name (its zero-initialised memory starts right after its code, so nothing can be appended).\n- **The amp.** `tools\u002Fpatch_amp.py` builds the amp's DSP graph, parameter map and menu entries. A parameter count has to agree in three places (the model table, the graph's parameter map and the menu's info row), or the Stomp shows the wrong name or crashes.\n- **The container.** `tools\u002Fhxf.py` and `tools\u002Fl6ia.py` read and write the `.hxf` container and the archive inside it. These use checksums only; there is no encryption or signature.\n\n## Tests\n\n```sh\npython3 -m venv .venv && .venv\u002Fbin\u002Fpip install -r requirements-dev.txt\n.venv\u002Fbin\u002Fpytest -m \"not slow and not firmware\"   # about 1 s: the model data, the converters, the helpers\n.venv\u002Fbin\u002Fpytest -m slow                          # about 20 s: the kernel in the simulator\nHX_STOMP_HXF=path\u002Fto\u002FHX_Stomp_v3.80.0_0x103966115.hxf .venv\u002Fbin\u002Fpytest -m firmware\n```\n\nGitHub Actions runs the first two on every push and pull request. The firmware tests need your own stock file (`HX_STOMP_HXF`, `HX_STOMP_XL_HXF`, `HX_EFFECTS_HXF`) and are skipped without one. They build the whole `.hxf` and compare its MD5 with the one pinned in `tests\u002Ftest_firmware.py`: the build is deterministic, so a changed byte anywhere in the firmware fails until the pin is updated on purpose.\n\nOn a real HX Stomp, `tools\u002Fhx_smoke.py` runs a build from RAM and tests it over USB: blocks, knobs, presets, the DSP budget and the recorded audio. See [QA.md](QA.md).\n\nWrite the test first, watch it fail, then change the code:\n- **Kernel behaviour:** add a step to `KernelCheck` in `tools\u002Fsharc\u002Fnam_multi.py` and its name to `STEPS`. `tests\u002Ftest_multi_kernel.py` runs them, and so does `build.py`.\n- **The converters:** `tests\u002Ftest_web_parity.py` checks that `web\u002Fnam2ir-core.js` writes the same bytes as `nam2ir.py` and refuses the same captures, so a change to one fails until the other matches.\n\n## Layout\n\n```\nbuild.py                      one-step build from the stock .hxf\ntools\u002Fnam2ir.py               .nam -> User IR .wav\nweb\u002Findex.html                the setup page: firmware build (web\u002Ffirmware-worker.js), RAM run (web\u002Framrun.js) and converter (web\u002Fnam2ir-core.js)\ntools\u002Fpatch_amp.py            inspect \u002F add-model \u002F add-fx-model \u002F remove-model \u002F move-folder \u002F ir-title \u002F effects-eq \u002F patch\ntools\u002Feffects.py              the HX Effects build's steps (patch_amp.py effects-eq)\ntools\u002Fhxf.py, l6ia.py         .hxf container and L6IA archive\ntools\u002Fl6ia_verify.py          checks every checksum in an archive\ntools\u002Fhxf_ram.py              runs a build from RAM (RAM_RUN.md); tools\u002Framboot\u002F holds the built loader and hook\ntools\u002Fhx_smoke.py             on-unit tests over USB (QA.md): hx_ctl.py (HX Edit's USB control), hx_dfu_reboot.py,\n                              hx_ramrun.sh, hx_reamp.py, qa\u002F (the factory-preset sweep), mac\u002F (recorder, player)\ntools\u002Fsharc\u002Fnam_multi.py      the kernel's layout, data and simulator check\ntools\u002Fsharc\u002Fnam_multi_kernel.asm\ntools\u002Fsharc\u002Fnam_lite.py       the model format (converter), test model, shared tables, reference run\ntools\u002Fsharc\u002Fnam_pack.py       .nam loader, layer order\ntools\u002Fsharc\u002Fentry4_blob.py    DSP graph library parser\ntools\u002Fsharc\u002Fsasm.py, ssim.py  SHARC assembler and simulator\nsrc\u002Fsharc\u002Fnam_a2.asm          reference NAM A2 implementation for the check\nsrc\u002Framboot\u002F                  the RAM loader and its eMMC overlay hook (C, Cortex-M4; make -C src\u002Framboot)\ntests\u002F                        pytest: unit, web parity, kernel (slow), firmware (needs a stock .hxf)\ndocs\u002F                         images for this README\ndocs\u002Fresearch\u002F                working notes: measurements on the unit, studies, dead ends\n```\n\n## Credits\n\n- **Med Hamza**: the photo of NAM A2 Lite running on an HX Stomp XL.\n- **Scott** ([scottlynn73\u002Fhx-effects-nam-lite](https:\u002F\u002Fgithub.com\u002Fscottlynn73\u002Fhx-effects-nam-lite)): the first HX Effects port, which the HX Effects support here builds on.\n- [Neural Amp Modeler](https:\u002F\u002Fgithub.com\u002Fsdatkinson\u002Fneural-amp-modeler) by Steven Atkinson: the model format NAM A2 Lite runs.\n\n## Licence\n\nGPL-3.0-or-later; see [LICENSE](LICENSE). Third-party notices and trademarks are listed in [NOTICE](NOTICE).\n","该项目为Line 6 HX Stomp系列效果器（含HX Stomp、HX Stomp XL和HX Effects）提供非官方固件补丁，将Neural Amp Modeler（NAM）A2 Lite神经网络吉他音箱建模模块集成至原厂v3.80.0固件中，使其可直接在设备DSP上实时运行，作为标准音色块使用。核心功能包括内置10旋钮模拟均衡器（含Bass\u002FMid\u002FTreble\u002FHigh Cut）、与原生HXAmp菜单无缝集成、支持HX Edit工程文件保留NAM区块，并提供零安装的Web端固件定制工具。适用于吉他手在演出或录音中扩展真实感音箱建模能力，无需外接电脑或音频接口。","2026-11-24 04:32:50","CREATED_QUERY"]