Page 1 of 1

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

Posted: Tue Oct 25, 2016 1:45 am
by towers of silence
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

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

Posted: Sat Nov 12, 2016 11:18 pm
by S4racen
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