MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Mapping Questions >> Need to map 1 data byte -> lsb msb
(Message started by: Agent420 on May 25th, 2007, 8:49am)

Title: Need to map 1 data byte -> lsb msb
Post by Agent420 on May 25th, 2007, 8:49am
Hello, forum newb here ;)

I have a device that accepts sysex cmds to control various parameters.  I have a BCR2000 midi knob box that sends std CC msgs.  The problem is the device sysex msg passes parameter value data in 2 byte format, Lo - Hi, and the std CC msg passes value data as 1 byte.

Is there an easy way that I am overlooking to convert 1 byte data into 2 byte data formats, or am I looking at some scripting?

edit -

Example:  incoming CC data is $EF, I need to get 0F 0E to pass in sysex packet...


Title: Re: Need to map 1 data byte -> lsb msb
Post by Peter L Jones on May 25th, 2007, 2:22pm
Scripting - you'll want to be creating the entire SysEx packet, I would imagine.  Have a read through the scripting forum, I think there might be an example there already.

Title: Re: Need to map 1 data byte -> lsb msb
Post by Agent420 on May 29th, 2007, 12:45pm
Thanks for the reply.  After a weekend of experimenting, I see that scripting is the way to go.  I saw the thread you refer to and it was quiate helpful.

Thanks again.



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