Overview
open-stomp is a Rust library, with Python bindings, for controlling the SORAN Dual Stomp Lite guitar pedal over USB-MIDI and Bluetooth. This section is for developers writing their own tools; for the desktop editor built on it, see Open Stomp Manager.
What it does
- Full protocol: parses and builds every message the official Stomp Manager app sends or receives: live CC/PC control, vendor SysEx, and the packed preset and settings records.
- State tracking:
DeviceStatefollows all 99 presets, the live sound, looper, drum machine, tuner, settings and user slots, and describes each message in plain English (AMP · Mar J800 · GAIN = 64). - Connection engine: finds the pedal, connects, follows hotplug, runs the startup sync and paces requests the way the pedal needs, over USB or Bluetooth LE.
- NAM and IR import: converts
.namamp models and WAV cab IRs for the pedal's user slots, with conversions that sound closer to the original than the official app's (results). - No pedal needed to develop: replays recorded sessions through the real engine.
- Python bindings: the same compiled library from
import open_stomp, fully typed.
Anything Open Stomp Manager does with the pedal, your program can do with the same calls.
Layers
The crate has three layers. Only the device engine talks to the pedal.
| Layer | Modules | I/O | Cargo feature |
|---|---|---|---|
| Protocol | pack, midi, catalog, records, state, queue, upload, capture, ir, blemidi | None (ir reads WAV files); no dependencies | Always on |
| NAM | nam (and the optimised IR conversion in ir) | Reads files | nam |
| Device engine | device | MIDI (midir), Bluetooth LE (btleplug) | device, ble |
The protocol layer is pure: the same bytes always give the same result. That is why the capture logs in captures/logs/ can serve as test vectors for all of it.
Every module
| Module | I/O | What it does | Protocol page |
|---|---|---|---|
pack | none | 8-in-7 bitstream pack / unpack for SysEx records | SysEx framing |
midi | none | Msg::parse, frame, stream Assembler, req:: reads, host:: commands, hex | MIDI CC reference, Commands |
catalog | none | Module, CC map, model names, ParamDefs, drum patterns, note names | MIDI CC reference |
records | none | Preset (110 bytes), Settings (17 bytes), user slot names, ASCII helpers | Preset record, Other records |
state | none | DeviceState: applies every message, returns a readable Event | all |
queue | none | RequestQueue: one SysEx in flight, reply matching, timeouts, sync progress; handshake(), follow_up() | SysEx framing |
upload | none | User AMP (NAM) and user IR upload framing: chunks, slot-info record, reassembly | NAM and IR uploads |
capture | none | Capture log reader | Capturing traffic |
ir | files | WAV read/write, resampling, IR conversion for the pedal | NAM and IR uploads |
blemidi | none | BLE-MIDI packet framing | |
nam | files | .nam loading and inference (a NeuralAmpModelerCore port), the NAM → pedal converter | NAM & IR research |
device | MIDI | Device: hotplug scan, auto-connect, startup sync, edits, uploads, replay |
The crate root re-exports the everyday types: Module, Msg, Assembler, Preset, Settings, DeviceState, Event, Category, Origin, plus is_stomp_port, is_ble_port, BLE_PORT_SUFFIX and USB_ID.
Rust or Python
The Python package is the Rust library compiled in with PyO3, so both run the same tested code.
| Rust | Python | |
|---|---|---|
| Package | open-stomp crate, use open_stomp::… | open-stomp-lib wheel, import open_stomp |
| Install | Git dependency, pinned to a tag | Wheel from the GitHub release, or build from source |
| Versions | Rust 1.88 or newer | Python 3.9 or newer (one abi3 wheel per platform) |
| Covers | Everything | Everything except a few low-level extras (differences) |
| Start here | Rust quick start | Python quick start |
Minimal example
Print everything that happens on the pedal. Turn a knob and you see a line like AMP Mar J800 · GAIN = 64.
use open_stomp::device::{Config, Device, Update};
use open_stomp::DeviceState;
fn main() {
let dev = Device::spawn(Config::default()); // finds and connects to the pedal by itself
let mut state = DeviceState::default();
while let Ok(update) = dev.recv() {
match update {
Update::Reset => state = DeviceState::default(),
Update::Message { origin, bytes, .. } => {
let ev = state.apply(&bytes, origin);
println!("{:8} {} = {}", ev.category.label(), ev.subject, ev.value);
}
_ => {}
}
}
}from open_stomp import Device, DeviceState
state = DeviceState()
with Device() as dev: # finds and connects to the pedal by itself
for update in dev: # blocks; Ctrl-C to stop
if ev := state.feed(update):
print(ev) # AMP Mar J800 · GAIN = 64Where next
Get started
- Rust quick start: add the crate and run a first program.
- Python quick start: install the wheel and run a first script.
Guides
- Connecting to the pedal: the engine, ports, Bluetooth, listen-only mode.
- Reading pedal state:
DeviceState, events, presets, looper, tuner. - Live edits: presets, effects, parameters, the signal chain, looper, tuner, drums.
- Presets and settings: saving presets and writing the global settings.
- User AMP and IR slots: import, rename, delete and read back.
- Converting NAM models: the
namfeature and the conversion options. - Your own MIDI transport: the protocol layer without the engine.
- Replaying captures: develop and test without a pedal.
Reference
- Feature flags
- Rust API (rustdoc), or
cargo doc --openlocally - Python API
- Changelog
Compatibility and status
Tested on the Dual Stomp Lite (V1.1.1) and the Strich Master Tone (V1.1.0). See Compatibility for untested pedals and how to report yours.
| Area | Status |
|---|---|
| Live control, state tracking, startup sync | Verified on hardware (USB and Bluetooth) |
| NAM and IR import (optimised and official) | Verified on hardware |
| Preset save and rename, settings writes | Byte-identical to the official app; not yet run on hardware from this library |
| LSTM and ConvNet NAM models | Not supported yet |
Back up before writing
Live edits are harmless, but preset and settings writes overwrite what is stored on the pedal. Keep a copy of your presets before you try them (how).
The library runs on Linux, macOS and Windows. The pedal is class compliant, so no driver is needed on any of them.
