MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Mapping Questions >> How to Map NRPN Messages
(Message started by: Claire_Baker on Apr 4th, 2014, 10:32am)

Title: How to Map NRPN Messages
Post by Claire_Baker on Apr 4th, 2014, 10:32am
How do you map NRPN messages ?

A button on my synth sends (for "off")
NRPN MSB  99 0
NRPN LSB 98 9
NRPN MSB Data 6 0

For "button on" it sends:
NRPN MSB 99 0
NRPN LSB 98 9
NRPN MSB Data 6 1

It does not send any NRPN LSB Data msg.

I have set up the mapping line
* NRPN 9 9 0 0   | * Ctrl 7 7 0 0
which does work.

I can't work out how to detect the "button on" message however.  i.e. that is the msg where the 2nd byte of the NRPN data group has changed from '0'  to '1'.

The mapping line
* NRPN 9 9 1 1  | * Ctrl 7 7 127 127
does NOT work.

Can anybody help me with this ?
Another way of asking the same question is:
How do you set up mapping to detect NRPN MSB Data fields ?

Thank you for any help anyone can provide for this.

Regards,
Claire Baker

Title: Re: How to Map NRPN Messages
Post by Breath on Apr 4th, 2014, 11:03pm
Hi Claire,

I have never looked at the NRPN mapping.
At first it seems to be seriously buggy, but further investigation shows that Jamie treats the NRPN value as a 14 bit number even if you are just using a 3 byte message.

I don't think this is the way a lot of other people think (including you, by the look of it, and me).

Anyway, because you are putting out the value MSB, really your values are
0 =  00 00 = 0
1 =  01 00 = 128

As there is no value LSB the 128 value could, in fact, be anything from 128 to 255

Try this
* NRPN 9 9    0     0  | * Ctrl 7 7    0    0
* NRPN 9 9  128 128  | * Ctrl 7 7 127 127


Hope this helps

All the best
Royce

Title: Re: How to Map NRPN Messages
Post by ClaireBaker on Apr 25th, 2014, 12:40am
Hi Royce,
Thank you for your fast and informative reply.  It was very helpful in enabling me to detect and map the NRPN Data Entry MSB.

Since then however, I have done extensive testing (several hard days of severe head scratching) and have reached the conclusing that I don't think there is any way to make Midi-Ox detect changes in the NRPN MSB message (Msg 99 or 63H).

Unfortunately my synth manufacturer uses this to identify individual buttons.

I base my statement that 'I can't find any way to make Midi-Ox detect the data in the NRPN MSB message (99)' on the fact that checking either or both of tick boxes "Use Input Value 1(Pull)" or "Use Input Value 2(Pull) does not replicate changes in the data value for the NRPN MSB 99 message.  I can therefore only conclude there is no way to get Midi-Ox to detect this field.

I'd be interested in your (or anyone else's) comments on this.

Nevertheless, I think Midi-Ox is a still an excellent piece of software.  Great work !

Cheers!

Best regards,
Claire Baker

Title: Re: How to Map NRPN Messages
Post by Breath on Apr 25th, 2014, 9:04pm
Hi Claire
I'm afraid I couldn't make it work either.
Perhaps there is a trick to it and Jamie can let us know.

You can use Bome's Midi Translator.
There is a free classic edition that would suite your needs.
http://www.bome.com/products/miditranslator/overview/classic

You just set up your Midi ports, create a new preset, and add a translation line.
The input is in hex and so you can type B0 63  00 B0 62 09 B0 06 pp .
The pp is the value.
The output is simply B0 07 pp

Hope this helps
Royce



MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.