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::Hostupdate, so applying every update keepsDeviceStatein 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
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)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| Method | Sends | Notes |
|---|---|---|
select_preset(i) | Program change C1 i | 0-based, P01 = 0 |
set_head(module, model, on) | Head CC | Model and on/off together; ignored for LOOP and DRUM |
set_param(module, slot, value) | Parameter CC | Ignored for slots the module doesn't have |
set_volume(v) | CC 0x3A | Preset volume, 0–100 (higher values are capped at 100) |
show_page(module) | CC 0x3B | The 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 0x44 | host::LOOP_* |
set_tuner(on) | SysEx 0x6F write (queued) | New in 0.6.3 |
send(bytes) | Any CC or PC, now | Bypasses the queue |
write(msgs) | Any messages, in order | Waits 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:
let m = Module::Amp;
let model = state.live.modules[m.index()].model;
dev.set_head(m, model, false);m = Module.AMP
dev.set_head(m, state.live.module(m).model, False)Parameters
- Slots are the official app's display order. Slot
sof a module is CCfirst + s, fromModule::param_ccs()(first CC, count). - Slots the module doesn't have (beyond its count) are ignored:
host::paramreturnsNoneand 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.pagefollows 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 withrecords::valid_chain). Python takes a list ofModules and raisesValueErrorfor an invalid one. - On the wire: a SysEx
0x0Dwrite through the queue. The pedal answers with a reply carrying the order it now uses (not an ack), andDeviceStateupdateslive.chainfrom it. - Moves made on the pedal send a
0x0Dnotification; the engine follows it with a read (req::chain()), sostate.live.chainstays 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
| Index | Module | Rust | Python |
|---|---|---|---|
| 0 | OD/FX | Module::OdFx | Module.OD_FX |
| 1 | AMP | Module::Amp | Module.AMP |
| 2 | CAB | Module::Cab | Module.CAB |
| 3 | MOD | Module::Mod | Module.MOD |
| 4 | DELAY | Module::Delay | Module.DELAY |
| 5 | REVERB | Module::Reverb | Module.REVERB |
| 6 | GATE | Module::Gate | Module.GATE |
| 7 | EQ | Module::Eq | Module.EQ |
| 8 | LOOP | Module::Loop | Module.LOOP |
| 9 | DRUM | Module::Drum | Module.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):
| Constant | Value | Button |
|---|---|---|
host::LOOP_REC_PLAY_DUB | 0x01 | REC / PLAY / DUB |
host::LOOP_STOP | 0x02 | STOP |
host::LOOP_CLEAR | 0x04 | CLEAR |
host::LOOP_UNDO_REDO | 0x08 | UNDO / 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
0x6Fwrite 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.activefollows. - 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)).
| CC | Control | Values | Host → pedal |
|---|---|---|---|
0x3F | Drum on/off | 1 playing, 0 stopped | Sent by the official app |
0x40 | Drum pattern | style × 10 + pattern, 0–99 | Confirmed (Linux) |
0x41 | Drum level | 0–100 | Sent by the official app |
0x42 | Looper REC level | 0–100 | Confirmed (Linux) |
0x43 | Looper PLAYBACK level | 0–100 | Confirmed (Linux) |
0x49 | Looper LOOP SYNC | 0 off, 1 on | Sent by the official app |
0x4A | Looper LOOP MODE | 0 NR, 1 AR | Unverified |
- 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 stylevalue % 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.
| Builder | Returns |
|---|---|
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_write | Writes; see Presets and settings |
Models and parameters
The catalog module knows every module's models and parameters, as the official app shows them.
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");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 ±) orEnum(choices). Python:"knob","bipolar","enum"pluschoices.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::ALLlists all ten modules,Module::EFFECTSthe eight with models and parameters.- Model lists:
OD_MODELS,AMP_MODELS,CAB_MODELS,MOD_MODELS,DELAY_MODELS,REVERB_MODELS, plusMICSandPOSITIONSfor CAB. - Drum and tuner:
drum_pattern_name(v),DRUM_STYLESandNOTES.
