Skip to content

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: DeviceState follows 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 .nam amp 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.

LayerModulesI/OCargo feature
Protocolpack, midi, catalog, records, state, queue, upload, capture, ir, blemidiNone (ir reads WAV files); no dependenciesAlways on
NAMnam (and the optimised IR conversion in ir)Reads filesnam
Device enginedeviceMIDI (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
ModuleI/OWhat it doesProtocol page
packnone8-in-7 bitstream pack / unpack for SysEx recordsSysEx framing
midinoneMsg::parse, frame, stream Assembler, req:: reads, host:: commands, hexMIDI CC reference, Commands
catalognoneModule, CC map, model names, ParamDefs, drum patterns, note namesMIDI CC reference
recordsnonePreset (110 bytes), Settings (17 bytes), user slot names, ASCII helpersPreset record, Other records
statenoneDeviceState: applies every message, returns a readable Eventall
queuenoneRequestQueue: one SysEx in flight, reply matching, timeouts, sync progress; handshake(), follow_up()SysEx framing
uploadnoneUser AMP (NAM) and user IR upload framing: chunks, slot-info record, reassemblyNAM and IR uploads
capturenoneCapture log readerCapturing traffic
irfilesWAV read/write, resampling, IR conversion for the pedalNAM and IR uploads
blemidinoneBLE-MIDI packet framing
namfiles.nam loading and inference (a NeuralAmpModelerCore port), the NAM → pedal converterNAM & IR research
deviceMIDIDevice: 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.

RustPython
Packageopen-stomp crate, use open_stomp::…open-stomp-lib wheel, import open_stomp
InstallGit dependency, pinned to a tagWheel from the GitHub release, or build from source
VersionsRust 1.88 or newerPython 3.9 or newer (one abi3 wheel per platform)
CoversEverythingEverything except a few low-level extras (differences)
Start hereRust quick startPython 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.

rust
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);
            }
            _ => {}
        }
    }
}
python
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 = 64

Where next ​

Get started

Guides

Reference

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.

AreaStatus
Live control, state tracking, startup syncVerified on hardware (USB and Bluetooth)
NAM and IR import (optimised and official)Verified on hardware
Preset save and rename, settings writesByte-identical to the official app; not yet run on hardware from this library
LSTM and ConvNet NAM modelsNot 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.

MIT or Apache-2.0. Not affiliated with SORAN.