NRPN, bits and all this..


    Feb 10 2008 | 1:50 pm
    hi
    I am using, inside the vst~ object, a plug-in which i can (and want) to control by NRPN , in order to have a much more precise control
    The plug-in is OHMForce's QuadFrohmage Filter ( a really great filter!!) - and I have the list of NRPNs All is fine, I have no trouble accessing the controls, using midievent messge(s).
    The trouble is that I don't really know what all those NRPNs and bits are - my midi knowledge is very much MAX only, and so far I did not have much use for NRPN
    __so, from what the OhmForce's manual says, their plug-in have
    "16384 possible NRPN's, each one having a 14 bit value (i.e. a value between 0 and 16383). The system uses 4 prede- fined MIDI CC's. Data is sent to the MIDI device in two phases : first the NRPN num- ber, and then the NRPN value."
    I know how to access the NRPN number - and also how to send the value, but only using 2 (midi, 0-127) values
    I would like to send ONE (0-16384) value...
    how to translate this ONE (0-16384) value into 2 (midi, 0-127) values???
    (I kind of suspect it is close to using [<< 7] in reverse.... so it could be [>> 7] but.. but it's quite unclear to me - why 7, how to access all 16384 values, etc etc)
    any light would be welcome
    many thanks
    kasper
    -- ________________________
    Kasper T. Toeplitz noise, composition, bass, computer ________________________
    33/35 rue des Panoyaux 75020 PARIS FRANCE
    t: home +(33) (0)1 40 02 08 91 mob +(33) (0)6 63 42 85 34
    e-mail: kasper@club-internet.fr kasper@free.fr http://www.sleazeArt.com
    http://www.myspace.com/sleazeart ________________________

    • Feb 10 2008 | 2:40 pm
      Here it is fairly clear explained: http://www.borg.com/~jglatt/tutr/rpn.htm
      In max it could be done like below. The 7 is because midi-values are limited to 7 bits.
      _ johan
    • Feb 10 2008 | 2:56 pm
      here you go:
    • Feb 10 2008 | 3:21 pm
      >Here it is fairly clear explained: >http://www.borg.com/~jglatt/tutr/rpn.htm > >In max it could be done like below. The 7 is because midi-values are >limited to 7 bits. >
      many thanks
      I did not knew the [&] object - it now makes total sense
      best
      kasper -- Kasper T. Toeplitz noise, composition, bass, computer http://www.sleazeArt.com
    • Feb 10 2008 | 3:23 pm
      there was a little problem in what I originally posted, caused by the change object 128 would be decoded as 0, 256 as 128 etcetera.
      again:
    • Feb 10 2008 | 3:30 pm
      > I did not knew the [&] object
      o yes. that's probably the better way in this case - [& 127] instead of [% 128]. clearer, and probably a bit cheaper cpu-wise, too?
      Regards, Klaas-Jan
    • Feb 10 2008 | 9:10 pm
    • Feb 10 2008 | 9:12 pm
      Tiens, il est neuf heures.