Velocity to multiple NPRN´s with scaling

Hello,

Checked out the scaling tutorial video and copied those rules but don´t get scaling to work. Guess I´m doing something wrong somewhere.

I´d like to control multiple, let´s say four NRPN´s on my synth module via velocity.
I want to be able to scale them differently, but I guess the values in the scaling tutorial would be a good default setting.

Another thing I noticed was that using NRPN´s, I get only an output of max 127, when the parameter is i.e 0-256 (controlled either from modwheel or velocity. Why is that?

I would be very grateful for a preset as I tried for hours without succeding

Thanks
Attila

Hi and welcome to the Bome community!

Please find the attached. Since we are converting 7 bit velocity to 14 bit NRPN, you will loose some precision. In this case standard scaling is not as important as you can just use the same value for the MSB and LSB velocity. Of course, you could scale it to 256 value is you would like (see translator 0.3).

I use raw MIDI instead of NRPN because with raw MIDI I can assign variables for MSB and LSB where NRPN requires hard coding. I calculate the NRPN number from the note number, but you could use a variable for that too.

Convert-to-14bit-NRPN.bmtp (1.7 KB)

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

Thanks so much for the help Steve!

But now I´m a little lost :slight_smile:
If the NPRN number is 144 for the synth parameter I want to control, where do I input that data?

MSB = 1 (value 128)
LSB = 16
Value = 144

You can find this in the rules of the translator

Steve Caldwell

Yes… I understood that NPRN 144 would be MSB=1 and LSB=16.
But didn´t undertstand where to input those data? in the midi string?

I´m sorry, this is a ‘new world’ to me

Would it be possible for you to input the 144 NPRN data in the preset so I can download it?

Hi,

Yes, please see the following. Here are the rules.

// Scale
qq=qq*256
qq=qq/128
Log "Log modified value is %qq%"
// NRPN MSB
oo=1
// NRPN LSB
pp=16
Log "Log MSB=%oo% LSB=%pp% value=%qq%"
// value msb
ss=qq>>7
tt=qq&127

Or you can use translator 0.3 to hard code it

Convert-to-14bit-NRPN.bmtp (2.3 KB)

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz