Launchpad - best way to detect the right hand buttons?

Questions and discussion about building and using Max for Live devices
Post Reply
gavspav
Posts: 342
Joined: Tue Jul 12, 2005 12:43 am

Launchpad - best way to detect the right hand buttons?

Post by gavspav » Fri Jan 08, 2010 5:27 pm

I'm using the API to detect LaunchPad activity.

I want to get the button presses for the arrow buttons on the right of the unit (vol, pan, snd A etc)

I can do this by setting up an observer for each button but I'm thinking there is a more efficient way.

Is there?


*EDIT* Observing Mixer_Modes returns 0-3 for the first four buttons.
I'm still missing the last four.

technog0d
Posts: 265
Joined: Mon May 26, 2008 1:14 pm
Location: Philly
Contact:

Re: Launchpad - best way to detect the right hand buttons?

Post by technog0d » Sat Jan 09, 2010 1:51 pm

you can observe those buttons individually with the following values

Vol_Button
Pan_button
SndA_Button
SndB_Button
Stop_Button
Trk_On_Button
Solo_Button
Arm_Button

You will get a 0 or 1 that indicated whether it's off or on...

Mike
Websites:
Max For Live Community site:
http://www.max4live.info
http://www.noisemakers.info

Controllers: Lemur, Ohm 64, Monome, APC40, Launchpad
Daw: Live 8 Suite
Audio Interfaces: Apogee Ensemble & Duet
Monitors: JBL LSR 4300

gavspav
Posts: 342
Joined: Tue Jul 12, 2005 12:43 am

Re: Launchpad - best way to detect the right hand buttons?

Post by gavspav » Sat Jan 09, 2010 5:21 pm

OK - thanks anyway.

Lo-Fi Massahkah
Posts: 3602
Joined: Fri Jun 04, 2004 2:57 pm
Location: The south east suburbs of Malmö, Sweden.

Re: Launchpad - best way to detect the right hand buttons?

Post by Lo-Fi Massahkah » Sat Jan 09, 2010 5:47 pm

Don't know if this is the best way. But it's how I solved it. And judging from the documentation I think it's the only way. No similarities to reading the complete 8x8 matrix. I'd like that though.

Code: Select all

<pre><code>
----------begin_max5_patcher----------
2472.3oc4c01baaiD9y1+J3349Pu1zT.r3Mde6t+F2zIirLSh5IQ4QhJMsc5
+8SD.JlzVxdIWxUyfLYhrAkr4xGru7rO.j9ut8l6te6Wq1eWw+p3+VbyM+0s
2bS3PsG3lz3atayh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