roland sysex checksum calculator
Roland SysEx Checksum Calculator guide
Use this when an editor shows a Roland System Exclusive packet and you need to verify the byte immediately before F7. Identify the command and the protected region in your model’s MIDI implementation chart. Paste the address followed by the data for DT1, or the address followed by the requested size for RQ1. Enter two hex digits per byte.
Play the instrument ↑- Default result
- 6F checksum
Calculation and units
Add the protected bytes as integers. The checksum is the seven-bit value that makes the combined sum a multiple of 128. Equivalently, subtract the remainder of the sum modulo 128 from 128 and keep only the low seven bits. If the sum already falls on a multiple of 128, the answer is 00.
Worked examples
Select a named case in the Worked example control to load these values. You can then edit any input to compare the result.
Short address and value
Address and data bytes (hex) = 10 00 00 01.
6F checksum. 4 protected bytes · sum 17 decimal · low seven bits of sum plus checksum = 0.
A leading hex digit of one in the first byte contributes sixteen in decimal. Including the final one leaves a remainder of seventeen for the checksum to complement.
Manual example
Address and data bytes (hex) = 10 00 06 00 02.
68 checksum. 5 protected bytes · sum 24 decimal · low seven bits of sum plus checksum = 0.
These are the address and data from the MC-909 example. The checksum should close the sum at 128. Checking this known packet is a convenient way to establish your byte boundaries.
Already divisible by 128
Address and data bytes (hex) = 7F 01.
00 checksum. 2 protected bytes · sum 128 decimal · low seven bits of sum plus checksum = 0.
This group adds to 128 exactly. The representable seven-bit complement is zero, because writing 80 would introduce a status-range byte into the data portion.
One below a multiple
Address and data bytes (hex) = 7F 00.
01 checksum. 2 protected bytes · sum 127 decimal · low seven bits of sum plus checksum = 0.
The protected bytes leave a remainder of 127. Adding one completes the block. This small case helps distinguish a modulo-128 checksum from an eight-bit modulo-256 complement.
Zero-valued group
Address and data bytes (hex) = 00 00 00 00.
00 checksum. 4 protected bytes · sum 0 decimal · low seven bits of sum plus checksum = 0.
All protected bytes contribute zero. A zero checksum is legitimate under this rule, although an all-zero address and value acquire meaning only from a particular instrument’s address map.
A sum over two blocks
Address and data bytes (hex) = 7F 7F 03.
7F checksum. 3 protected bytes · sum 257 decimal · low seven bits of sum plus checksum = 0.
The sum exceeds 256, so subtracting from 128 only once would produce a negative intermediate. Reducing modulo 128 first handles both the carries without changing the rule.
Interpreting the result
For the MC-909 example with address bytes 10 00 06 00 and one data byte 02, the decimal sum is 24. The missing amount up to 128 is 104, written as hexadecimal 68. A capture can be checked without editing it by adding the printed checksum to that same protected sum and testing the remainder.
If a very long dump arrives as several messages, locate each F0 and F7 pair in your capture and consult the device’s transfer format. Each applicable packet has its own protected portion and its own checksum. Adding the address and data from two packets together would verify neither of them individually, even if the combined remainder happened to be zero.
Measurement and model limits
Leave the start byte, manufacturer ID, device and model identifiers, command byte, existing checksum and terminator outside the input. Header values can also look like legal seven-bit data, so range checks alone cannot find an incorrectly selected region. The example byte groups below illustrate arithmetic only. A valid checksum does not identify an applicable parameter address.
Music theory tools → · MIDI CC Hex Converter → · Roland MC-909 MIDI implementation →
Answers before you play
Common questions
Can the bytes be entered in decimal?
This field reads hexadecimal pairs. The pair 10 means decimal sixteen. Keep a leading zero on values below sixteen and separate pairs with a space or comma. A decimal display needs conversion before pasting.
Will this detect a reversed address?
A sum cannot detect a permutation of otherwise identical bytes. A valid result checks this one arithmetic property. Use the address map, model ID and command format to verify that the message identifies the intended parameter.
Do I include F0 or F7?
Both are framing bytes and fall outside the protected address and data region. The checksum immediately precedes F7 in the applicable Roland packets.
Does this also work for an RQ1 request?
Use the address and size bytes specified for that request. The arithmetic is the same as for DT1, but the protected bytes following the address describe the requested size.