Skip to content

SysEx framing ​

How the pedal's vendor SysEx is framed, paced and encoded. Read this before the command reference and the record layouts.

SysEx carries everything that isn't a single live parameter: identification, whole presets, names, system settings, looper/drum/tuner state and NAM/IR uploads. Live parameter changes use CCs.

Confidence

Confirmed = seen on the wire and consistent. Inferred = consistent with the captures and the static analysis but not independently proven. Code: midi.rs, pack.rs, queue.rs.

Manufacturer ID ​

All vendor SysEx uses the 3-byte manufacturer ID 00 21 7A. Two frame shapes follow it:

ShapeByte after 00 21 7AUsed for
Short frame00, 10, 60Firmware version and product name
Command frame70Everything else

Short frames ​

Identification frames with no command byte.

RequestReplyMeaning
F0 00 21 7A 00 F7F0 00 21 7A 10 <32 B ascii version> <ascii model> 00 00 F7Version: "V1.1.1" zero-padded to 32 bytes, then "JME-01"
F0 00 21 7A 60 F7F0 00 21 7A 60 <24 B ascii product name> 0A 00 00 00 00 00 00 00 F7Product: "JME STOMPBOX", then 0x0A (10; meaning unknown, maybe the number of user slots)
  • Universal identity request: the pedal answers F0 7E 7F 06 01 F7 with F0 00 21 7A 10 F7, which is not a standard identity reply.
  • Unsolicited F0 00 21 7A 10 F7: seen twice mid-session. Meaning unknown.

Command frames ​

The vendor calls these NEP frames (class NEPStruct in the app).

text
F0  00 21 7A  70  <cmd>  <dir>  <payload ...>  F7
    \_mfr__/  uid  msgId  direction
FieldSizeValue
uid1Always 0x70
cmd (msgId)1Selects the data object (command table)
dir1Direction
payloadanyAll bytes ≤ 0x7F; encoding depends on the command (encodings)
  • No checksum observed.
  • Payload bytes are always ≤ 0x7F (the SysEx rule). How 8-bit data is carried depends on the command.

Direction ​

dirMeaningSent by
00Read requestHost
01WriteHost
02Read reply (data)Pedal
03Write acknowledgePedal
7ENot a dir: 7E in the cmd position marks a notificationPedal
  • Write acks are short: 70 <cmd> 03 + a few bytes, often zeros, sometimes an echo of the request header.
  • Exceptions: a 0x0D chain write and a 0x16 delete are answered with a dir 02 reply, not an ack.

Pacing and timeouts ​

The pedal handles one SysEx request at a time.

  1. Send one request or write.
  2. Wait for its 02 reply or 03 ack (see the exceptions above) before sending the next SysEx frame.
  3. Give up after 1 s and move on. The app's sender has a 1000 ms timeout and a mutex (static analysis).
  • CCs and PCs have no reply and need no queue, but keep them in order with queued SysEx writes.
  • Official app over USB: CCs ≥ 11 ms apart, typically 16 ms (one per UI frame).
  • Bluetooth: at least 15 ms between messages. An unpaced burst of 61 CCs froze the pedal until a power cycle.
  • Whole-record writes (settings 0x14, chain 0x0D) are rewritten in full on every change. The app sends dozens of settings writes per second while a slider is dragged. open-stomp replaces a queued write of either with the newer one instead of queueing both.

open-stomp's RequestQueue implements this as a pure state machine; see your own MIDI transport.

Payload encodings ​

Three encodings are in use, plus plain text. Which one applies depends on the command.

EncodingCommands
Plain 7-bit0x0D, 0x15, 0x16, 0x18, 0x19, 0x6F, notification payloads
Packed 8-in-70x0B, 0x0C, 0x10, 0x14, 0x58 (the entire body after dir, header fields included)
Mixed0x09: plain slot byte, then a packed record
Plain text0x12 preset name

Plain 7-bit ​

  • Each byte is a value 0–127.
  • 14-bit values are two bytes, high 7 bits first: value = (hi << 7) | lo. Example: drum BPM 00 78 = 120.

Packed 8-in-7 ​

8-bit data packed into 7-bit MIDI bytes as one little-endian bitstream:

  • Every MIDI data byte contributes its 7 low bits, LSB first, and those bits are concatenated.
  • Regroup the bits into 8-bit bytes, LSB first, to get the struct. A trailing partial byte is dropped.
  • 126 MIDI bytes → 110 struct bytes (126*7/8) for a preset.
rust
/// 8-bit struct bytes -> 7-bit MIDI bytes (little-endian bitstream, LSB first).
pub fn pack(data: &[u8]) -> Vec<u8> {
    let mut out = Vec::with_capacity(data.len() * 8 / 7 + 1);
    let (mut acc, mut nbits) = (0u32, 0u32);
    for &b in data {
        acc |= (b as u32) << nbits;
        nbits += 8;
        while nbits >= 7 {
            out.push((acc & 0x7F) as u8);
            acc >>= 7;
            nbits -= 7;
        }
    }
    if nbits > 0 { out.push((acc & 0x7F) as u8); }
    out
}

/// 7-bit MIDI bytes -> 8-bit struct bytes. A trailing partial byte is dropped.
pub fn unpack(midi: &[u8]) -> Vec<u8> {
    let mut out = Vec::with_capacity(midi.len() * 7 / 8);
    let (mut acc, mut nbits) = (0u32, 0u32);
    for &b in midi {
        acc |= ((b & 0x7F) as u32) << nbits;
        nbits += 7;
        if nbits >= 8 {
            out.push((acc & 0xFF) as u8);
            acc >>= 8;
            nbits -= 8;
        }
    }
    out
}
python
# tools/decode/unpack.py
def unpack(midi: bytes) -> bytes:
    bits = "".join(format(b & 0x7F, "07b")[::-1] for b in midi)
    return bytes(int(bits[i:i+8][::-1], 2) for i in range(0, len(bits) - 7, 8))

def pack(data: bytes) -> bytes:
    bits = "".join(format(b, "08b")[::-1] for b in data)
    bits += "0" * (-len(bits) % 7)
    return bytes(int(bits[i:i+7][::-1], 2) for i in range(0, len(bits), 7))
  • Evidence that headers are packed too: the 0x58 slot reads use MIDI bytes 00 00, 00 02, 00 04… for slots 0, 1, 2. That is exactly how slot = 0, 1, 2 at unpacked byte 1 comes out after packing.
  • Test: unpacking a captured 126-byte preset body must give 110 bytes with the name at 94..110, and pack(unpack(x)) == x (modulo the final partial byte).
RecordStruct bytesMIDI bytes
Preset (0x0B, 0x0C)110126
Read request header (0x0B, 0x0C)1214
System settings (0x14)1720
Upload header (0x58, 0x10)1214
Upload chunk (header + 136 data bytes)148170
AMP slot info (header + 128)140160
IR slot record (0x09, after the slot byte)3642

Mixed ​

0x09 (IR slot info) is one plain byte (the slot index), then a packed stream starting at the next MIDI byte.

Plain text ​

0x12 preset name: plain ASCII, one character per byte, zero padded to 16. Inside packed records, names are just bytes of the struct.

Notifications ​

When something changes on the pedal that has no CC, the pedal sends:

text
F0 00 21 7A 70 7E 02 <cmd> 02 <payload...> F7
cmdTriggerPayloadWhat the app does next
0x6FTuner opened/closed on the pedal, or switched by a 0x6F write00 00 00 00 00 00Reads 0x6F, writes it back unchanged
0x19Tap tempo, BPM knob, drum pattern change, loop recorded6 bytes, same layout as the drum record (BPM at bytes 4–5)Nothing (the data is inline)
0x0DBlock moved on the pedal's chain screen (once per move, then CC 0x3B page)00 00 00 00 00 00Read 70 0D 00 for the new order
0x0BPreset saved on the pedal<index> 00 00 00 00 00Reads preset <index> (70 0B 00 <index> 00*13)
0x16After a 0x16 delete-IR write from the host<slot> 00 00 00 00 00Nothing seen
  • open-stomp's follow-ups: 0x0D → read the chain; 0x0B → read that preset and the edit buffer; 0x6F → read the tuner (queue::follow_up).
  • State sync: after the handshake, keep state from channel-1 CCs/PCs, these notifications, and your own writes (the pedal doesn't echo them).

Bluetooth LE ​

With Wireless on, the pedal speaks the same protocol over BLE-MIDI. Only the framing and the timing change.

Service03b80e5a-ede8-4b33-a751-6ce34ec4c700 (standard BLE-MIDI)
Characteristic7772e5db-3868-4112-a1a9-f2669d106bf3
WritesWithout response, packets up to ATT MTU − 3 bytes (20 bytes on every link)
PairingNot needed
Pacing≥ 15 ms between messages (see pacing)
Reply latency40–240 ms, median 95 ms (USB: about 1 ms)
  • Framing (Apple / MMA "MIDI over Bluetooth LE"): a header byte 1 0 t12…t7, then MIDI messages, each status byte preceded by a timestamp byte 1 t6…t0. Timestamps are 13-bit milliseconds and wrap.
  • SysEx across packets: a continuation packet carries its data bytes straight after the header, and the closing F7 gets its own timestamp byte.
  • Running status is allowed, with or without a fresh timestamp.
  • Pad read requests like the app. The 0x0C read must carry its 14 zero bytes: the pedal takes request parameters from those bytes, and a bare request makes it read whatever the previous message left in its buffer. Seen over BLE as empty or truncated replies.
  • Why pace: the pedal's BLE module feeds the DSP over a serial link (AT commands over UART, per the firmware strings).

Code: blemidi.rs (framing), ble.rs (link).

MIT or Apache-2.0. Not affiliated with SORAN.