For those interested in using the Novation Launchpad with linux, I wrote a small program + library to register the launchpad as a regular ALSA midi device.
Would be nice to see it included in 2.6.36, but I have doubts … the final version was released last week, which mean the merge window has been closed for quite some time.
~/Downloads/jiyunatori-launchpad-fc863d9$ make
gcc -lusb-1.0 -lpthread -lasound -o lpmidi lpmidi.c liblaunchpad.c
In file included from lpmidi.c:27:
liblaunchpad.h:30: fatal error: libusb-1.0/libusb.h: No such file or directory
compilation terminated.
In file included from liblaunchpad.c:27:
liblaunchpad.h:30: fatal error: libusb-1.0/libusb.h: No such file or directory
compilation terminated.
make: *** [lpmidi] Error 1
No idea where to grab libusb from. It’s installed on my system already.
Then I was getting another error: ```
lpmidi.c:28: fatal error: alsa/asoundlib.h: No such file or directory
Which resolved thanks to: [What package does this file belong to? | soledad penadés](http://bit.ly/ibSVIe) [http://bit.ly/ibSVIe](http://bit.ly/ibSVIe)
sudo apt-get install libasound2-dev
After that the
make clean
make lpmidi
worked fine! Now I'm off to test it all out a bit more!
Good luck