Forums > Max For Live

### noob question how to convert values with live.menu so that 0=0 1=3 2=5 etc..

Mar 26 2013 | 9:28 pm

hi
so i want to output different values using the live.menu.. The reason for this is because of a little quirk in the Sidstation i want to control.
The wave settings are as follows

midi value/waveform :
0=off
1=tri
2=saw
3=off
4=pulse
5=mix
6=off
7=off
8=noise

I dont know why it is layed out this way, but I just want to make it possible to make a live.menu
that gets rids of the ‘off’s in between. So the values that needs to be converted are
0=0=off
1=1=tri
2=2=saw
3=4=pulse
4=5=mix
5=8=noise

so i basicly need to convert 3 to 4, 4 to 5 and 6 to 8 only how do I go about this?
Srry for the noob question – but ive tried to look at various tutorials and in this forum and I just got in to max4live.

Mar 26 2013 | 9:41 pm

For a few values I might use select, like:

``````
-- Pasted Max  Patch, click to expand. --

```
coll is a tidier solution, but maybe overkill for this:
```
-- Pasted Max  Patch, click to expand. --

```
```
Mar 26 2013 | 10:13 pm

Similar to the coll solution above, how about using [zl lookup]

``````
-- Pasted Max  Patch, click to expand. --

```
```
Mar 26 2013 | 10:26 pm

Thank you!!! :)

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Max For Live