Closed ghost closed 6 years ago
Also, lp.ListAll()
does not print anything.
Is there something I'm missing?
Unfortunately, no :(
If lp.ListAll()
does not show any devices, it won't work.
The only thing you could try is using Python 2, assuming you're using 3 or vice versa...
This is a known issue. PyGame was compiled against an older Alsa version. I recently had some ideas for a workaround. Will try to set up a VM for some tests...
I tested this with Python 3 pygame-1.9.4-dev from the Git(hub) repository.
Working nice, here.
I added some notes about how to compile PyGame in the README.md.
Can be done in a couple of minutes on an 18.04-LTS system (unless you need a fully-fledged PyGame).
Maybe that's helpful...
Actually I did not try the stock Ubuntu 18.04 PyGame distribution, only my 1.9.4-dev version. Maybe I'll test that later on...
Compiling you own PyGame version will fix this (in almost all cases). Instructions are included in the readme...
(Ubuntu 18.04, launchpad.py version 0.8.0, pygame version 1.9.3, alsa version k4.15.0-22-generic) I have tried numerous methods with no success. I have tried
lp.Open()
,lp.Open(20)
,lp.Open(20,"Launchpad Mk2 11")
, andlp.Open(20,"Launchpad Mk2 11 MIDI 1")
. None of these worked and they all returnedFalse
.I am sufficiently confused. Is there something I'm missing? Output of
aconnect -i
:Output of
aseqdump -p 20
after pressing random buttons: