How do I send SysEx values from 0-3 instead of 0-127?

Discuss Lemur and share techniques.
Post Reply
bammer
Newbie
Posts: 11
Joined: 27 Dec 2011 20:57

How do I send SysEx values from 0-3 instead of 0-127?

Post by bammer »

This seems simple enough but I need to restrict the value output via sysex message to 0,1, or 2.
I intend to use the "Menu" item along with custom midi message to make the selection.

I need to select one of these:
0 = filter off
1 = filter 1
2 = filter 2

Then my custom midi message (sysex) is as follows: {0x00, 0x20, 0x33, 0x01, 0x10, 0x70, 0x40, 0x7A, 127*selection[0]} where "selection" is the name of the target.
The first thing I have noticed is I need to check "Scale Output" on the menu properties.
bammer
Newbie
Posts: 11
Joined: 27 Dec 2011 20:57

Re: How do I send SysEx values from 0-3 instead of 0-127?

Post by bammer »

Well I don't know if it's right but it's working.
Here is what I did:

I used the range min,max function in a custom midi message.
{...range(name of menu[index],minimum,maximum)}
{0x00, 0x20, 0x33, 0x01, 0x10, 0x70, 0x40, 0x33, range(selection[0],0,3)}

I'm nearly finished with the filter section on the Access Virus C. I have the envelopes finished I think.
If there is any interest I will upload this once it is presentable. I'll be moving to the oscillator section next.

Since SoundDiver for Virus C no longer works because of OS X Lion, I'm having to build my own sound design platform for my Virus.
kraftf
Regular
Posts: 124
Joined: 14 Dec 2011 06:36

Re: How do I send SysEx values from 0-3 instead of 0-127?

Post by kraftf »

bammer wrote: Then my custom midi message (sysex) is as follows: {0x00, 0x20, 0x33, 0x01, 0x10, 0x70, 0x40, 0x7A, 127*selection[0]} where "selection" is the name of the target.
The first thing I have noticed is I need to check "Scale Output" on the menu properties.
{0x00, 0x20, 0x33, 0x01, 0x10, 0x70, 0x40, 0x7A, 2*selection[0]} is more simple!
analog604
Regular
Posts: 262
Joined: 29 Dec 2011 15:40
Location: north east, usa

Re: How do I send SysEx values from 0-3 instead of 0-127?

Post by analog604 »

cool, I haven't had SoundDiver working in so many years. I miss those days of total emagic environment integration (but not bugs!). Digging through synth front panel menus with a little LCD and no encoders is not as much fun.

Please post your presentable Virus implementation. : ) More templates to learn from the better.
Now that Lemur is out in the wild on iPad there will be an explosion of templates.
Been working with interface design and scripting a week and love it, working on a midi cc/sysex transforming controller and router for it.
cheers~
Jay
bammer wrote:Well I don't know if it's right but it's working.
Here is what I did:

I used the range min,max function in a custom midi message.
{...range(name of menu[index],minimum,maximum)}
{0x00, 0x20, 0x33, 0x01, 0x10, 0x70, 0x40, 0x33, range(selection[0],0,3)}

I'm nearly finished with the filter section on the Access Virus C. I have the envelopes finished I think.
If there is any interest I will upload this once it is presentable. I'll be moving to the oscillator section next.

Since SoundDiver for Virus C no longer works because of OS X Lion, I'm having to build my own sound design platform for my Virus.
Dashboard gear control templates: User 112 Idx :: LModIt Lite :: SVG image converter for Lemur Canvas
Post Reply