Skip to content

Live edits ​

How to change the pedal's sound from your program: presets, effect blocks, parameters, volume, the signal chain, looper, tuner and drum machine. Live edits are plain MIDI on channel 2 (MIDI CC reference); to store them, see Presets and settings.

Nothing is stored until you save

A live edit changes the sound at once, like turning the pedal's knobs. It is lost on the next preset change unless you save the preset.

Before you send ​

  • Be connected: the engine refuses sends before it is connected, in listen-only mode, or without an output port. Wait for the sync first.
  • No echo: the pedal doesn't echo what you send. The engine reports each message it sends as an Origin::Host update, so applying every update keeps DeviceState in step with your edits (Reading pedal state).
  • Indices are 0-based: preset 0 is P01; model 8 is shown on the pedal as #09.

Overview ​

rust
use open_stomp::Module;
use open_stomp::midi::host;

dev.select_preset(4);                        // P05            C1 04
dev.set_head(Module::Amp, 8, true);          // Mar J800, on   B1 01 08
dev.set_param(Module::Amp, 0, 100);          // AMP GAIN 100   B1 12 64
dev.set_param(Module::Eq, 3, 60);            // EQ band 4 +10
dev.set_volume(80);                          // preset volume  B1 3A 50
dev.show_page(Module::Delay);                // pedal display jumps to DELAY
dev.set_chain(&[6, 1, 0, 2, 7, 3, 4, 5]);    // AMP before OD/FX
dev.looper_button(host::LOOP_REC_PLAY_DUB);  // B1 44 01
dev.set_tuner(true);                         // tuner on
dev.send(host::cc(0x3F, 1));                 // drum on (any CC from the CC reference)
python
from open_stomp import Module
from open_stomp.midi import host

dev.select_preset(4)                         # P05
dev.set_head(Module.AMP, 8, True)            # Mar J800, on (model and on/off share one CC)
dev.set_param(Module.AMP, 0, 100)            # GAIN 100
dev.set_param(Module.EQ, 3, 60)              # EQ band 4 +10
dev.set_volume(80)
dev.show_page(Module.DELAY)                  # pedal display jumps to DELAY
dev.set_chain([Module.GATE, Module.AMP, Module.OD_FX, Module.CAB,
               Module.EQ, Module.MOD, Module.DELAY, Module.REVERB])
dev.looper_button(host.LOOP_REC_PLAY_DUB)
dev.set_tuner(True)
dev.send(host.cc(0x3F, 1))                   # drum on
MethodSendsNotes
select_preset(i)Program change C1 i0-based, P01 = 0
set_head(module, model, on)Head CCModel and on/off together; ignored for LOOP and DRUM
set_param(module, slot, value)Parameter CCIgnored for slots the module doesn't have
set_volume(v)CC 0x3APreset volume, 0–100 (higher values are capped at 100)
show_page(module)CC 0x3BThe pedal's display jumps to that module
set_chain(order)SysEx 0x0D write (queued)New in 0.7.0; all eight effect modules, GATE included
looper_button(b)CC 0x44host::LOOP_*
set_tuner(on)SysEx 0x6F write (queued)New in 0.6.3
send(bytes)Any CC or PC, nowBypasses the queue
write(msgs)Any messages, in orderWaits behind pending SysEx

Select a preset ​

select_preset(i) sends a program change. The pedal loads the stored preset, and DeviceState loads its cached copy into state.live.

Effect blocks ​

set_head(module, model, on) sets a block's model and on/off together, because they share one CC (the head byte: bit 6 set = off, low bits = model).

To switch a block off without changing its model, pass the current model:

rust
let m = Module::Amp;
let model = state.live.modules[m.index()].model;
dev.set_head(m, model, false);
python
m = Module.AMP
dev.set_head(m, state.live.module(m).model, False)

Parameters ​

  • Slots are the official app's display order. Slot s of a module is CC first + s, from Module::param_ccs() (first CC, count).
  • Slots the module doesn't have (beyond its count) are ignored: host::param returns None and nothing is sent.
  • Slots the model doesn't use are accepted by the pedal but do nothing. Use module.params(model) to see which exist (below).
  • Values are 0–100. Bipolar parameters (EQ bands) have 50 as centre.

Volume and page ​

  • set_volume(v): the preset volume (the top slider in the official app), 0–100.
  • show_page(module): makes the pedal's display show that module's page. state.page follows it.

Signal chain ​

set_chain(order) reorders the live preset's signal chain. New in 0.7.0.

  • order: all eight effect modules, GATE included, each exactly once, in signal order. LOOPER and DRUM always follow the chain.
  • Rust takes module indices (&[u8], see the index table) and ignores an invalid order (check with records::valid_chain). Python takes a list of Modules and raises ValueError for an invalid one.
  • On the wire: a SysEx 0x0D write through the queue. The pedal answers with a reply carrying the order it now uses (not an ack), and DeviceState updates live.chain from it.
  • Moves made on the pedal send a 0x0D notification; the engine follows it with a read (req::chain()), so state.live.chain stays current.
  • Storing it: like other live edits it is lost on a preset change; saving the preset stores it (Preset::chain).
  • Confirmed by probing a pedal (V1.1.1, USB) and checked on its display.

records::DEFAULT_CHAIN is the order of most factory presets: GATE > OD/FX > AMP > CAB > EQ > MOD > DELAY > REVERB.

Module indices ​

IndexModuleRustPython
0OD/FXModule::OdFxModule.OD_FX
1AMPModule::AmpModule.AMP
2CABModule::CabModule.CAB
3MODModule::ModModule.MOD
4DELAYModule::DelayModule.DELAY
5REVERBModule::ReverbModule.REVERB
6GATEModule::GateModule.GATE
7EQModule::EqModule.EQ
8LOOPModule::LoopModule.LOOP
9DRUMModule::DrumModule.DRUM

The index is the page value of CC 0x3B and, for the eight effect modules, also the head CC number. In Rust, m.index() or m as u8 gives it; in Python, int(m) or m.index.

Looper ​

looper_button(b) presses a looper button (CC 0x44 on channel 2):

ConstantValueButton
host::LOOP_REC_PLAY_DUB0x01REC / PLAY / DUB
host::LOOP_STOP0x02STOP
host::LOOP_CLEAR0x04CLEAR
host::LOOP_UNDO_REDO0x08UNDO / REDO

The pedal reports the looper's state back on CC 0x44 (channel 1); see state.looper in Reading pedal state.

Tuner ​

set_tuner(on) switches the tuner on or off. New in 0.6.3.

  • On the wire: a SysEx 0x6F write through the queue, the same payload the official app writes back after the pedal's tuner notification.
  • The pedal acks, enters or leaves tuner mode and sends its tuner notification. The engine then reads the tuner state, so state.tuner.active follows.
  • Confirmed on a pedal (V1.1.1, USB).

Drum machine and other CCs ​

There are no drum helpers; send the CC with send(host::cc(cc, value)).

CCControlValuesHost → pedal
0x3FDrum on/off1 playing, 0 stoppedSent by the official app
0x40Drum patternstyle × 10 + pattern, 0–99Confirmed (Linux)
0x41Drum level0–100Sent by the official app
0x42Looper REC level0–100Confirmed (Linux)
0x43Looper PLAYBACK level0–100Confirmed (Linux)
0x49Looper LOOP SYNC0 off, 1 onSent by the official app
0x4ALooper LOOP MODE0 NR, 1 ARUnverified
  • Sent by the official app: it mirrors the pedal's channel-1 report back on channel 2.
  • Confirmed means: sending the channel-2 CC and reading the drum (0x19) or looper (0x18) record back shows the new value. The pedal sends no channel-1 report or drum notification in reply.
  • Tempo has no CC; it only travels in SysEx 0x19.
  • Patterns: styles are value / 10 (0 Pop, 1 Rock, 2 Metal, 3 Disco, 4 Funk, 5 Blues, 6 Hip Hop, 7 Jazz, 8 Latin, 9 Metro), the pattern within a style value % 10. drum_pattern_name(13) is "Rock 04".

The full CC list is in the MIDI CC reference.

Raw messages and builders ​

The helpers are thin wrappers over midi::host builders, which return the bytes. Use them with send (live CCs/PCs) or write (queued, in order behind pending SysEx), or with your own transport.

BuilderReturns
host::cc(cc, val)A channel-2 CC
host::program(i)A channel-2 program change
host::head(module, model, on)The head CC; None for LOOP and DRUM
host::param(module, slot, val)The parameter CC; None for a slot the module doesn't have
host::volume(v)CC 0x3A, capped at 100
host::page(module)CC 0x3B
host::looper_button(b)CC 0x44
host::tuner(on)SysEx 0x6F write
host::chain(order)SysEx 0x0D write; None unless order is valid
host::preset_name, preset_write, save_preset, settings_writeWrites; see Presets and settings

Models and parameters ​

The catalog module knows every module's models and parameters, as the official app shows them.

rust
use open_stomp::Module;
use open_stomp::catalog::ParamKind;

let m = Module::Mod;
for (i, name) in m.models().iter().enumerate() {
    let params: Vec<_> = m.params(i as u8).iter().map(|p| p.name).collect();
    println!("#{:02} {name}: {params:?}", i + 1);
}
let p = Module::Cab.param(3, 0).unwrap();     // CAB model 4, slot 0 = MIC
assert!(matches!(p.kind, ParamKind::Enum(_)));
assert_eq!(p.format(4), "SM57");
python
from open_stomp import Module

Module.AMP.models[8]                     # 'Mar J800'
[p.name for p in Module.AMP.params(8)]   # ['GAIN', 'BASS', 'MIDDLE', 'TREBLE', 'PRESENCE', 'MASTER']
mic = Module.CAB.param(3, 0)
mic.kind, mic.choices[:2], mic.format(4) # ('enum', ['E906', 'M160'], 'SM57')
Module.from_param_cc(0x12)               # (Module.AMP, 0)
Module.AMP.head_cc, Module.AMP.param_ccs, Module.AMP.label   # 1, (18, 6), 'AMP'
  • ParamKind: Knob (0–100), Bipolar (0–100, 50 = centre, shown ±) or Enum(choices). Python: "knob", "bipolar", "enum" plus choices.
  • ParamDef::format(v) gives the value as the official app shows it.
  • Module::from_param_cc(cc) maps a CC back to (module, slot).
  • Module::ALL lists all ten modules, Module::EFFECTS the eight with models and parameters.
  • Model lists: OD_MODELS, AMP_MODELS, CAB_MODELS, MOD_MODELS, DELAY_MODELS, REVERB_MODELS, plus MICS and POSITIONS for CAB.
  • Drum and tuner: drum_pattern_name(v), DRUM_STYLES and NOTES.

MIT or Apache-2.0. Not affiliated with SORAN.