Help needed-toggle button to map separate on/off states

Learn about building and using Max for Live devices.
Post Reply
towers of silence
Posts: 70
Joined: Tue Jan 06, 2009 11:32 pm
Location: Portsmouth, NH

Help needed-toggle button to map separate on/off states

Post by towers of silence » Tue Oct 25, 2016 1:45 am

So I'm a n00b w/ Max, and I'm clumsily trying to build what I think is a very simple device that sends a MIDI CC at a specific value to a mapped parameter when on, and then a different MIDI CC at a specific value to a different parameter when off. I would like these parameters to be mappable to whatever destinations I choose, and that's actually where I'm having the most problems.
An example of this in use may make it more clear- if I use the Buffer Shuffler device, I want to have this toggle set up so I can, say, map the "On" state to trigger the Dice parameter, and then toggling it off, I want it to trigger the Reset parameter, setting everything back to normal.
I'm a bit lost with this in regards to how to get the values mapped to specific parameters. I can use the Live API info to populate a list of tracks, devices and parameters available as potential destinations, so far so good, but I can figure out how to actually send the values I choose to the parameters I choose.

I'm sure this is something easy, like I said, I'm new at this so I'm bumbling around in the dark.... I'd welcome any thoughts about how to create the entire device, I have a very clunky patch so far and I'm sure there's a more elegant way to do it....

Thanks in advance for your help

S4racen
Posts: 5834
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: Help needed-toggle button to map separate on/off states

Post by S4racen » Sat Nov 12, 2016 11:18 pm

So you have your live.toggle that you've MIDI Mapped to... Connect that to a Sel 1 object and then that to the dice button...

When the toggle is turned on it'll send out a 1 message which the Sel 1 object turns into a bang, which should dice the values...

Cheers
D

Post Reply