These are chat archives for brunchboy/afterglow

8th
Feb 2016
Benjamin Gudehus
@hastebrot
Feb 08 2016 02:05
I have a small question. The README.mdsays afterglow can communicate with a LaunchPad Pro controller. Is it also possible to use a LaunchPad MK2 (on Linux)?
James Elliott
@brunchboy
Feb 08 2016 22:37
Hi! I have not yet written an MK2 mapping. Just today I received a LaunchPad Mini on loan from Novation in order to write a mapping for that, and coincidentally yesterday I was looking at the programmer reference for the MK2, out of curiosity to see how much work it would be to support. It looks like it is very close to the Pro, missing only a couple of features like velocity and bulk update of the LED grid via System Exclusive messages. So the short answer is: not yet, but if you are willing to help me test things we should be able to get your MK2 working, even if not quite as quickly as if I had one sitting in front of me.
Also, as far as I know, you are the first person who will be trying things on Linux. I believe it should work fine, once you get OLA installed, and would definitely like to hear how that goes, and help smooth out any rough edges you may encounter.
Benjamin Gudehus
@hastebrot
Feb 08 2016 23:51
Hey. Thanks. I'll receive my LaunchPad on Friday and am happy if I can help out. I briefly looked into afterglow/controllers/launchpad_pro.clj, it looks not too complicated and gladly Novation provides a more or less detailed programmer reference.
James Elliott
@brunchboy
Feb 08 2016 23:54
Awesome! And yes, their programmer reference is very helpful. I just got some basic things working on my Mini, and looked a bit more into the Mk2. There are a few more differences than I mentioned above (the physical layout of the Mk2 is more like the Mini and S than like the Pro, for example, with only two sides of round buttons), but it still looks like it will be pretty straightforward.
I now plan to pull some of the common Launchpad support into its own namespace, and use the fact that their current models respond to the MIDI Device Inquiry message to enable Afterglow to detect what kind of Launchpad you have connected, and construct the appropriate mapping to drive it. By the time yours arrives, there should be a good framework for us to work with.
Benjamin Gudehus
@hastebrot
Feb 08 2016 23:57
Linux: It seems to work out-of-the-box and there are drivers included in the Linux kernel since 2.6. launchpad.py says it works on Linux (https://github.com/FMMT666/launchpad.py#requirements).

Ahh, read about the Linux kernel driver in the readme of pyLaunchpad:

Support for the Launchpad was added in Linux Kernel 2.6.37, so Linuxes with a newer kernel will not need any special drivers.

James Elliott
@brunchboy
Feb 08 2016 23:59
That’s great! And I believe OLA is quite happy on Linux too, and Afterglow should be. But I would not be shocked to discover that I had made some sort of assumption in my code that is fine for the Mac, but a problem on Linux. If so, it should be a pretty easy fix, but I am glad to have someone helping test it.