Preset record
The byte layout of a preset, as carried by SysEx 0x0B (by index) and 0x0C (edit buffer). Use it to decode, edit and write whole presets.
Size and packing
| On the wire | 126 MIDI bytes after <dir>, one packed stream |
| Unpacked | 110 bytes |
| Packing starts at | The index byte: the whole body is packed, header included |
| Same layout | 0x0B reads and writes, 0x0C reads (index field 0) |
- How it was derived: correlating all 99 presets read at startup with the CC values the pedal sent after Program Changes (
tools/decode/preset_layout.py). - Status column: Confirmed = matched by that correlation (or, for the chain, by writing it); Likely = constant or structural evidence; Unknown = meaning not known.
- Code:
records.rs(Preset).
Byte layout
| Offset | Size | Field | Notes | Status |
|---|---|---|---|---|
| 0 | 1 | Preset index | 0-based (P01 = 0). 0x0C reads return 0 here | Confirmed |
| 1–7 | 7 | 0 | Reserved / header | |
| 8 | 1 | 0x62 (98) | Constant in all presets: number of presets − 1? A version? | Unknown |
| 9–11 | 3 | 0 | ||
| 12 | 1 | OD/FX head | = CC 0x00 (bit 6 = off, bits 0–5 = model) | Confirmed |
| 13 | 1 | AMP head | = CC 0x01 | Confirmed |
| 14 | 1 | CAB head | = CC 0x02 | Confirmed |
| 15 | 1 | MOD head | = CC 0x03 | Confirmed |
| 16 | 1 | DELAY head | = CC 0x04 | Confirmed |
| 17 | 1 | REVERB head | = CC 0x05 | Confirmed |
| 18 | 1 | GATE head | = CC 0x06 | Confirmed |
| 19 | 1 | EQ head | = CC 0x07 | Confirmed |
| 20 | 1 | GATE param count | 2 | Likely |
| 21–22 | 2 | GATE THRESHOLD, DECAY | = CC 0x08, 0x09 | Confirmed |
| 23–24 | 2 | Pad | ||
| 25 | 1 | OD/FX param count | 2–4 | Likely |
| 26–29 | 4 | OD/FX params 1–4 | = CC 0x0C–0x0F | Confirmed |
| 30–31 | 2 | Pad | ||
| 32 | 1 | AMP param count | 6 | Likely |
| 33–38 | 6 | AMP GAIN…MASTER | = CC 0x12–0x17 | Confirmed |
| 39–40 | 2 | Pad | ||
| 41 | 1 | CAB param count | 5 | Likely |
| 42–46 | 5 | CAB MIC, POSITION, LOW CUT, HIGH CUT, VOLUME | = CC 0x1A–0x1E | Confirmed |
| 47 | 1 | Pad | ||
| 48 | 1 | EQ param count | 6 or 12 | Likely |
| 49–60 | 12 | EQ bands | = CC 0x20–0x2B | Confirmed |
| 61 | 1 | MOD param count | 1–4 | Likely |
| 62–65 | 4 | MOD params | = CC 0x2C–0x2F | Confirmed |
| 66 | 1 | DELAY param count | 3–4 | Likely |
| 67–70 | 4 | DELAY params | = CC 0x30–0x33 | Likely (by pattern) |
| 71–72 | 2 | Pad | ||
| 73 | 1 | REVERB param count | 2–4 | Likely |
| 74–77 | 4 | REVERB params | = CC 0x36–0x39 | Confirmed |
| 78 | 1 | VOL | = CC 0x3A (80 in every factory preset) | Likely |
| 79–81 | 3 | 0 | BPM? Flags? | Unknown |
| 82–89 | 8 | Signal-chain order | Module indices, GATE included (below) | Confirmed |
| 90–93 | 4 | 0 | Unknown | |
| 94–109 | 16 | Name | ASCII, zero padded | Confirmed |
Module heads
Bytes 12–19 hold one head byte per effect module, at 12 + module index:
- Value:
(off ? 0x40 : 0x00) | model, the same byte as the module's head CC. - Order: the module index from the module map: OD/FX, AMP, CAB, MOD, DELAY, REVERB, GATE, EQ.
Parameter blocks
Each effect module has a param-count byte followed by its parameters, in app display order (the order of its CCs).
| Module | Count byte | Params | Params size | CCs |
|---|---|---|---|---|
| GATE | 20 | 21–22 | 2 | 0x08–0x09 |
| OD/FX | 25 | 26–29 | 4 | 0x0C–0x0F |
| AMP | 32 | 33–38 | 6 | 0x12–0x17 |
| CAB | 41 | 42–46 | 5 | 0x1A–0x1E |
| EQ | 48 | 49–60 | 12 | 0x20–0x2B |
| MOD | 61 | 62–65 | 4 | 0x2C–0x2F |
| DELAY | 66 | 67–70 | 4 | 0x30–0x33 |
| REVERB | 73 | 74–77 | 4 | 0x36–0x39 |
- Count byte = the selected model's number of parameters. The official app keeps it consistent with the model.
- CAB always carries 5: user IRs only hide MIC and POSITION in the UI.
- Unused param bytes keep stale values from earlier models.
Chain order
Bytes 82–89 are the signal-chain order: the eight effect modules as module indices, in signal order.
| Byte | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 |
|---|---|---|---|---|---|---|---|---|
| Default | 06 GATE | 00 OD/FX | 01 AMP | 02 CAB | 07 EQ | 03 MOD | 04 DLY | 05 RVB |
- Default:
06 00 01 02 07 03 04 05(GATE first), the order of most factory presets. It varies per preset. - Valid order: each of 0–7 exactly once. GATE can be moved too. LOOPER and DRUM aren't in the chain; they always follow it.
- Same bytes as
0x0D: a live0x0Dwrite changes the edit buffer's order and a0x0Bsave stores it here. - Invalid bytes: open-stomp falls back to the default order when bytes 82–89 aren't a valid order.
Writing a preset
- Read the preset (
0x0B) or edit buffer (0x0C) and keep all 110 raw bytes. - Change only the fields you understand. Several bytes are still unknown, so never build a record from scratch.
- If a module's model changed, set its param-count byte for the new model.
- Set byte 0 to the target slot, pack, and send
70 0B 01 <packed>. Wait for the ack. - To rename too, send
0x12first, then select the slot withC1 <index>, as the app's save sequence does.
- Name field: 16 bytes, ASCII, zero padded. open-stomp writes printable ASCII only and turns anything else into
?. - Round trip: open-stomp's
Preset::to_rawpatches the decoded fields over the original raw bytes, so unknown bytes survive.
Related layout in the app
The static analysis found a preset layout from a sibling product, NBA150PPresetStruct: 11 heads, [model, p…] arrays, userName[16]… (struct dictionary). The Dual Stomp Lite layout is similar in spirit but not identical; trust the table above.
