Push 2 : Observe & Control

sono's icon

Hi Forum,

I need a little help here in getting started with MFL and Push2. I am having a hard time with wrapping my head around the basics. I expected that when you understand the Live Api, it should not be too difficult to apply this to Push, however, I am stuck.

I am looking for a step by step explanation of the principles about back and forth data traffic between MFL and Push. I trust that once I know the fundamentals, I will be able to succeed exploring further.

My first goals are to
1.) read button presses from the button matrix
2.) set individual button colours

That's it. How do I do this?

Number 1 is actually working with midi mappings in User Mode, however, there should be a way to integrate this in regular mode. In the end it's for a live performance and going to User Mode every time would be tedious.

My current state of understanding is:
- That Push is a control surface with its own live.paths / ids
- That you need to 'grab' and 'release' the controls
- That 'call send_value X Y Z' should set a color when sent to the right object.. but I do not know what object or how to define it
- That examples speak of 'Button_Matrix' but that 'call get_control_names' to the Control Surface Object shows me nothing like it

Conclusion: I am confused.

Any help is appreciated. Preferably a clear tutorial on this subject.

Thanks a lot!

Sono

sono's icon

Anybody?

hollyhook's icon

A little M4L device which I used to find out what the how the indexed colors of Push2 look like. The main logic is in js, but it should get you started. I have no Push here, so I couldn't test if it still works.

colors_frozen.amxd
application/octet-stream 43.03 KB

sono's icon

Thanks Hollyhook, this is great, I can set the colors now.

The next challenge is to read the button presses.. Any leads on that?

Thanks,

Sono