mapping integer values in maxforlive

charles spencer's icon

I want to set up a map button in my maxforlive patch that will control something using discrete integer values. For example tell a parameter to cycle between values 45,46,47,48

I don't want to send percentage values. How can I do this?

Source Audio's icon

you can use any object that can store a list
and scroll though it.
for example umenu with next & prev messages

charles spencer's icon

How do I get the mapping to send discrete integer values?

charles spencer's icon

ala map8, but sending integers instead of a percentage

Source Audio's icon

I don't use live, and so don't understand what you mean by mappings.
You asked for a button that cycles through values.
Thats what screenshot I posted is about.

charles spencer's icon

I totally understand, but I'm hoping a maxforlive person can respond.

Pitchthrill's icon

Are you talking about a map button like on Ableton's LFO? I used the abstraction M4L.api.DeviceParameterRemote for that. It has three inputs. The one on the right is for setting the parameter id, the middle one for sending relativ values (0...1) and i think the left one is for absolute values. So you might check if the right inlet would do the trick.