Midi NRPN explained

Buzzled how NRPN commands work at midi?

For example Analog Four sends oscillator 1 tune/finetune in following manner (raw midi bytes), all values are decimal:

[packet on 3 bytes:] 184 99 1
[packet on 3 bytes:] 184 98 0
[packet on 3 bytes:] 184 6 38
[packet on 3 bytes:] 184 38 64

As you can see we got four CC commands in a row. This is a screenshot from Analog Four manual:

Näyttökuva 2014-11-22 kello 17.20.04

The value 184 is CC command for midi channel 9. Then follows the command. There are four different commands:

99 – describe the MSB “register”
98 – describe the LBS “register”
6 – set MSB value
38 – set LSB value

So the actual values are after the bytes 6 and 38 in LSB + MSB format.

See also http://en.wikipedia.org/wiki/NRPN