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

funk313's icon

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.

mzed's icon
Max Patch
Copy patch and select New From Clipboard in Max.

For a few values I might use select, like:

Max Patch
Copy patch and select New From Clipboard in Max.

coll is a tidier solution, but maybe overkill for this:

willyc's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

funk313's icon

Thank you!!! :)