The wheel sent the same numbers as before. An earlier setup message left a parameter selected.
If a synth suddenly bends two octaves instead of one, looking only at the wheel messages can send you in the wrong direction. A MIDI 1.0 Pitch Bend message tells the receiver how far the wheel moved relative to center. A separate setting, Pitch Bend Sensitivity, can change what that position means in semitones.
On a receiver that implements the setting, an ordinary-looking Control Change 6 can change the range, but only in the context of the selected parameter. If you’re inspecting a routed MIDI stream, look back from that CC to the last parameter selection on the same channel.
Read the address before reading the value
Think of a direct CC as an address and a value in one message. CC 1, for example, is the modulation wheel. With RPN (Registered Parameter Number) and NRPN (Non-Registered Parameter Number), CC messages select a parameter first, then send a separate value. Both use CC messages; “NRPN vs. CC” is not a choice between two unrelated MIDI message types.
- RPN selects with 101 (MSB) and 100 (LSB). The standardized pair 0, 0 is Pitch Bend Sensitivity.
- NRPN selects with 99 (MSB) and 98 (LSB). Look up the pair in the receiving instrument’s documentation. Do not assume a mapping from another device.
- Data Entry uses 6 (MSB), with 38 (LSB) if the selected setting uses it. For Pitch Bend Sensitivity this is semitones and cents, not a single combined count of semitones.
The MIDI Association’s Control Change and RPN tables list the selectors, values and the RPN Null Function.
Compare two traces that differ by two messages
Here’s a channel 1 log, shown as full hex messages without running status:
B0 65 00 CC 101: RPN MSB = 0 B0 64 00 CC 100: RPN LSB = 0 (Pitch Bend Sensitivity) B0 06 0C CC 6: Data Entry MSB = 12 semitones B0 26 00 CC 38: Data Entry LSB = 0 cents B0 65 7F CC 101: RPN MSB = 127 B0 64 7F CC 100: RPN LSB = 127 (RPN Null) B0 06 18 CC 6: a later Data Entry value of 24 Without the two Null messages, the receiver model still has Pitch Bend Sensitivity selected when the final 24 arrives. The range changes to ±24 semitones. With both Null messages present, the range stays at ±12 semitones. Null clears the selection for future Data Entry; it doesn’t undo the value you just set. Selecting a new parameter later makes Data Entry meaningful again.
A useful cross-check: change only that last status byte from B0 to B1. Now the late CC is on channel 2. It can’t update channel 1’s selection. The offline fixture checks all 16 × 16 combinations of setup channel and later CC channel, with and without Null, for 512 cases. It also verifies that reselecting RPN 0 allows a fresh change.
Try the small state model in Node.js
This is a teaching model for already-decoded CCs, with complete selector pairs sent MSB first. It keeps a separate selection for each channel; it does not implement NRPN, cents, or raw-byte parsing.
const set12 = [ [0xb0, 101, 0], [0xb0, 100, 0], [0xb0, 6, 12], ]; const deselect = [[0xb0, 101, 127], [0xb0, 100, 127]]; const later = [0xb0, 6, 24]; function channelOneRange(messages) { const selected = Array.from({ length: 16 }, () => [null, null]); const ranges = Array(16).fill(2); for (const [status, cc, value] of messages) { const ch = status & 0x0f; // Assumes a validated MIDI CC. if (cc === 101) selected[ch] = [value, null]; if (cc === 100) selected[ch][1] = value; if (cc === 6 && selected[ch].every(part => part === 0)) { ranges[ch] = value; } } return ranges[0]; } console.log(channelOneRange([...set12, later])); // 24 console.log(channelOneRange([...set12, ...deselect, later])); // 12 console.log(channelOneRange([...set12, [0xb1, 6, 24]])); // 12 Debug one receiver and one channel at a time
- Check receiver support. Some instruments set bend range in the patch or ignore RPN 0. Consult that device or plugin’s MIDI implementation before expecting it to respond.
- Start with a known range. On a test patch, set a range you can verify and reproduce. Capture the selectors, both value bytes and the Null pair in the output log. Test the same wheel position before and after. Change one variable rather than adjusting both sides.
- Check for a second writer. A startup clip, hardware controller or MIDI mapper may have sent the later CC 6. Check the recorded output on the affected channel, not simply the channel displayed on your instrument’s UI. With two sources merged into the same channel, the selector and value messages should arrive in order without another source changing the selection between them.
If your input is a gesture from Sonari on Mac, try a short repeatable bend into your DAW and look at the message sequence the host routes to its instrument. This test does not require Sonari to send RPNs. The purpose is to separate a changed controller movement from a range that was changed downstream.
AI-generated Sonari Studio tutorial. Examples were verified in an original, offline JavaScript fixture limited to complete RPN 0 and RPN Null messages. No instrument, DAW, or Sonari measurements are claimed.
