Change visibility of M4L device parameter on Push 2

Learn about building and using Max for Live devices.
Post Reply
4eyez
Posts: 4
Joined: Tue Dec 22, 2009 2:11 pm

Change visibility of M4L device parameter on Push 2

Post by 4eyez » Tue May 17, 2016 8:50 pm

Posted this over at the C74 forum, but figured people here would have played with Push 2 and M4L as well:

I’m trying to replicate the way Push 2 displays native Live instrument parameters on Push 2 with a M4L device. Specifically, the way certain parameters are visible/invisible depending on the state of other parameters.

For example, let’s say I load the Operator synth on a track in Live and I go deeper into the parameters over to the "LFO" bank. The first parameter is LFO ON which can be turned on/off with the encoder. If the it’s set to "off" other parameters in that bank such as "LFO Type", "LFO Range", etc are greyed out. Then if I turn "on" the "LFO On" parameter with the encoder those parameter that were previously grey out now turn on and change to the colour of the track. Even better, the "OSCILLATOR" parameter suddenly appears on the 7th encoder where it was previously a completely empty slot.

Any ideas on how to achieve this functionality with the parameters on a M4L device?

The closest I got was having a live.dial object that already as an "Automapping Index" value set to a non-zero number, like 18 or whatever, then sending the live.dial a "_parameter_mapping_index 0" message. Initially the parameter is still visible on the Push, but if I select a different bank and then go back to the original bank the parameter slot is now empty. And vice versa when I send the same message back with the previous index value, but i still have to leave the bank and go back in to see it again.

So, pretty good, pretty close, but ideally it would happen in realtime while viewing that bank like with the native Live instruments.

I tried using the "active" message but only seems to change the way it’s displayed on Live’s screen and no effect on the Push 2 display. Any other messages I’m missing?

Thanks!!

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

Re: Change visibility of M4L device parameter on Push 2

Post by S4racen » Wed May 18, 2016 6:20 am

As far as i'm aware this cannot be changed with MaxforLive, the order and the visibility is set on load with a M4L device...

Cheers
D

Post Reply