anybody programming for the Launch Pad?

Learn about building and using Max for Live devices.
Tone Deft
Posts: 24152
Joined: Mon Oct 02, 2006 5:19 pm

anybody programming for the Launch Pad?

Post by Tone Deft » Sat Nov 21, 2009 10:14 pm

how's it going? what have you found?

I've been using mode 1 because mode 2 didn't tickle the 'midi in' and 'midiparse' objects. problem is the mode 1 keyboard is split into 2 columns. I've been working with that, got it lined up (upside down damnit!) with a matrixctrl object.

then I go onto lighting lights. so not I find mode 2 responds to the noteout command and the buttons are laid out more sanely. which mode should I design for? it seems the midi in objects don't detect the mode buttons, so I can't build that in.

next step is to link all the parts. I'm kind of imaging a scenario where there are two step sequencers, one on the top two rows, the other on the bottom two rows. you use the buttons on the right to select which sequences are visible and change velocities and swing for each step. something like that.


FWIW this is what I have going, mode 1 lights up buttons and tickles matrixctrl (upside down, will fix that later.) mode 2 syncs to Live's shuttle controls and lights up the LEDs like a step sequencer, there's also LED color control.

should I focus more on max or the Live API? I haven't dug into the API yet.

any tips, thoughts, ideas? much appreciated.

btw I think transport is broken, it stops responding after a while. that's been ticking me off. :evil:

<pre><code>
----------begin_max5_patcher----------
6373.3oc6c00biiak84NUk+CnbUakGRON7huQdKerOjpljzOrukZptjkos41
RhtDk6o6MU9uujDT1xsEEAUChKEZLSMRdjrkt7.fCuebvE+6e6u4cWcS4Wxq
th7GI+Kx6d2+t9UdW6q07Jua+K7tqVu3KKWsnp8W7pMOs9l7sW89t26txM61
rXcd668m1VrX0yuUwssuX4M+u+jx77qV+2WrYU9t1OM3vOlph+u1OFfdc1A+
1kOsa+uNc+K+3hcKenXy8eba9xcV6Wn40+YDgT29TVyiz5GI+x9+H6Gztu9X
t8u3phM6t58jqtYwl6uh7Ks+V+me6uo445mdu6HR9uVeM97E3t7uzZRWskrr
bU4ofJxetb0sGEujGGuxNJdk0GdAm.uTxVHp6IdClS.8Iwqo.jpNePRpFyjp
dAorgAIoP1BRrW.oyFHVVtdcdyDuuEI96k2lSnjpkaKWsphr6gskOc+C0OmS
94O76pH+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zH4PkwMGpPpKHYa4bC6PERcAIq4Mr
CUX0uqaMugcnxjgn4MrCUH0ridS6NrOyCyA2g82yf4Rig82yfIwxv96YPpYq
6VerhhzNIkl4VufGo8gKMyw9YJRG9Jt0cDnH0cDntsE0oHsE0oNdPJhzVTm5
11DlBXM351RCj1Gt1t3qZ34dBDMO4vlmDQySLr4oPz73CadZDMOGVZf4f6vm
Ef.lKMnCadbDMO1vlGRsZ5Qb30f.341l7CoxkJ.2hCBorS4zAgARsUOGqX.R
EJ0olP.NqWYtMmCKo03DxgDWha5nForg5lu6HE3i1IjCotknS2.CIovIbx0D
ANm2jBmbqCIEh5l7ZEXEOgaGuyHc..619EAoyxQ2Bk.oRR4zbNj5vONkaLjz
0na6zAjzmhimU7XcR16RlIv5zv1Mk8P0JDMuL2LOj35bv5X3cah4q0om0VmY
Nact0yvPy5XyYqSLqwNAcNactsuZPR86ts0APx3bqukfjwImyFmaaXErLNXN
OrZlyHmXNuZUMmQNo62hXtlxIOH08lWn9o+e.ZmTS0C
-----------end_max5_patcher-----------
</code></pre>
In my life
Why do I smile
At people who I'd much rather kick in the eye?
-Moz

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

Re: anybody programming for the Launch Pad?

Post by technog0d » Sat Nov 21, 2009 10:25 pm

You can change modes through the Live API, but if you want to change to x-y mode through midi, just send the following midi:

176,0,1

From the Programmers guide:

Select the grid mapping mode

Hex version B0h, 00h, 01-02h.
Decimal version 176, 0, 1-2.

This command affects the mapping of Launchpad buttons to MIDI key codes for messages in both
directions. There are two possible mappings, selectable with the last byte of this message:

Mapping Meaning
1 X-Y layout (the default).
2 Drum rack layout.

The X-Y layout is best for writing applications that use the Launchpad as a free grid, as it is easy to
navigate a cursor around the 8x8 grid in any direction by simply adding or subtracting. The drum
rack layout is better for situations when the Launchpad must deal with musical MIDI notes: six
continuous octaves are available in this mode, and these are laid out in a regular pattern.
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

Tone Deft
Posts: 24152
Joined: Mon Oct 02, 2006 5:19 pm

Re: anybody programming for the Launch Pad?

Post by Tone Deft » Sat Nov 21, 2009 10:36 pm

thanks!

I read that earlier in the week but I just forged ahead with what was working. last night I remembered that I had neglected the programmer's guide sltogether and LOL'ed at my noobness.

what's not clear to me is how I send those numbers, can they be CC or notes? I include the "-" in the third command? I could play with max and use trial and error to figure some of this out but any tips are appreciated.

I'm going to have to redo a few things!! no matter, the coding itself is enjoyable. :oops:
In my life
Why do I smile
At people who I'd much rather kick in the eye?
-Moz

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

Re: anybody programming for the Launch Pad?

Post by technog0d » Sat Nov 21, 2009 10:59 pm

They are just sent as notes... You can use makenote and noteout to send them. Remember though... You can do this all through the API. That is the tutorial that I am currently working 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

Tone Deft
Posts: 24152
Joined: Mon Oct 02, 2006 5:19 pm

Re: anybody programming for the Launch Pad?

Post by Tone Deft » Sat Nov 21, 2009 11:09 pm

many thanks, I'll look into those. :D

I think I'm going to have a serious hindsight moment coming up.
In my life
Why do I smile
At people who I'd much rather kick in the eye?
-Moz

hoffman2k
Posts: 14718
Joined: Tue Jun 15, 2004 6:40 pm
Location: Belgium
Contact:

Re: anybody programming for the Launch Pad?

Post by hoffman2k » Sun Nov 22, 2009 12:21 pm

Do you have a patch you can share that shows some basic button access?
No need for comments or a tutorial. Just something less intricate than the CS sequencer would be sweet.

Cheers

- Bjorn

marktakeshi
Posts: 7
Joined: Sun Mar 22, 2009 12:17 pm

Re: anybody programming for the Launch Pad?

Post by marktakeshi » Sun Nov 22, 2009 12:29 pm

technog0d wrote:They are just sent as notes... You can use makenote and noteout to send them. Remember though... You can do this all through the API. That is the tutorial that I am currently working on.

Mike
Is it also possible to make use of the "Rapid LED Update" (= updating two buttons with one midi message) through the Live API?

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

Re: anybody programming for the Launch Pad?

Post by technog0d » Sun Nov 22, 2009 12:31 pm

hoffman2k wrote:Do you have a patch you can share that shows some basic button access?
No need for comments or a tutorial. Just something less intricate than the CS sequencer would be sweet.

Cheers

- Bjorn
I am trying to put together the basics right now. In previous versions of M4L there were some issue with the control_surface object and crashing. I think it is fixed now. I am just starting to put together that type of info. As soon as i have the basics down, i will post a simple, illustrated patch to this forum.

Regards

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

amounra93
Posts: 432
Joined: Sat Jan 24, 2009 8:16 pm
Location: Arcata, CA
Contact:

Re: anybody programming for the Launch Pad?

Post by amounra93 » Sun Nov 22, 2009 12:43 pm

I've had it working both ways, via MIDI (I spent a day porting some stuff when I first got the Launchpad, about two days before i got M4L) both w/and w/o M4L, and then with the API. The API works best so far, I'm thinking things may even get better once some people get their hands on the js stuff. Not my forte, though.

You will definitely have less conflicts using the API.

Thanks for the hint about changing the key assignment scheme... I read it from the guide early on and promptly forgot about it altogether (to the tune of spending several hours making a patch to convert everything on the fly...whatever, it was good practice)

O, by the way, one of the nice things about using the API is that the MIDI note assignments don't matter. The butters are numbered according to the API. Makes a lot more sense.
http://www.aumhaa.com for Monomod and other m4l goodies.

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

Re: anybody programming for the Launch Pad?

Post by Lo-Fi Massahkah » Sun Nov 22, 2009 12:53 pm

Ok, guys. I'm digging into this just now.

Haven't been that active in the beta. Not at all. But I'm curious to the control surface api - can you give me some pointers on where to read up on that. I'm experimenting with user mode 1 right now - set to the x/y grid. It's working OK, but of there's someway of accessing it all through the api - I'm guessing that's better.

By the way, whats up with not letting us (me?) access the CCs from user mode 2?

.m

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

Re: anybody programming for the Launch Pad?

Post by technog0d » Sun Nov 22, 2009 1:16 pm

Lo-Fi Massahkah wrote:Ok, guys. I'm digging into this just now.

Haven't been that active in the beta. Not at all. But I'm curious to the control surface api - can you give me some pointers on where to read up on that. I'm experimenting with user mode 1 right now - set to the x/y grid. It's working OK, but of there's someway of accessing it all through the api - I'm guessing that's better.

By the way, whats up with not letting us (me?) access the CCs from user mode 2?

.m
Lo-Fi, It's good to see you on here. I always use your patches on my Lemur. The key to digging in a this point is to take apart the lesson on CS step sequencer. It illustrates the API usage with the Launchpad and APC40. You can get to it under the lesson section for Max For Live under lesson 14 if i remember correctly. If you need any help with M4L just contact me, with the contact button on my site listed below...

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

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

Re: anybody programming for the Launch Pad?

Post by Lo-Fi Massahkah » Sun Nov 22, 2009 1:28 pm

Cheers, Mike!

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

Re: anybody programming for the Launch Pad?

Post by Lo-Fi Massahkah » Sun Nov 22, 2009 2:22 pm

How about this? Receiving key presses from the LP. Storing in a matrixctrl and toggling between off, yellow, red, green.

Code: Select all

----------begin_max5_patcher----------
1974.3oc6bssiaaCD8YueEDps.IsNIhTTWbARAZQeo.8g9d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pomTcEp
RxP88PxhAA8EmoXuy0fDTShHMTkKOEi4mI5yXgONwdmyNjVZciqRbWNMhdV4
vwEkBzk5InAJ2JcFnacMHwdmQ6ecrHbFetszhiDyFWyRnoXOt3AoSvwf1CXR
h.UvfhoC7UgY6b1lF.qa+wcfDeSY25X6UtgOoP0NmqND5X5PiGEKWsYN43hp
S5NIv2I5zyFQm55a7yekRYf+9eDeXed2CfjrHRaeSebF72zGE0lZ4E74Y5a5
SyxOVqzi9d0JmiteQefCmyWAX4q9x9kYr0kod947UWZH+of7GfsjbFcA+9GS
SnrVzQlc7HgTkPMAGTSNNsymwwpxbB+BPU9p0welsYpLTpd4gj5C9i6u8Uk8
bZZmVI0SuSaER43+xWYW60g6LRMRwssYlajnz9yFpvp9CAWmY.e5resOy2SF
2zUhP1ZHR9WTQBpgDAwWVQBqy.m8EUl7zAlfWVXBdl0u467sa9OvNMqLq
-----------end_max5_patcher-----------
.m

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

Re: anybody programming for the Launch Pad?

Post by technog0d » Sun Nov 22, 2009 3:00 pm

That is basically what i did. It utilizes the old school midi approach. The advantage of the API is you can just say i want to select the button matrix and use these buttons... and so forth...

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

olivierseb
Posts: 230
Joined: Sun Dec 11, 2005 8:52 pm
Location: FRANCE
Contact:

Re: anybody programming for the Launch Pad?

Post by olivierseb » Sun Nov 22, 2009 5:53 pm

Lo-Fi Massahkah wrote:Ok, guys. I'm digging into this just now.

.m
hey Mikael !

good to see you there

welcome on board.

olivier
Image

MacBookPro17", mac OS 10.6.2/RME FF400 & FF800
http://www.olivierseb.com

Max for Live training sessions in Paris @
http://www.apaxxdesigns.com/

Max for Live training sessions in Rennes @
http://www.intouchmedia.fr

Post Reply