torpor
hack hack hack, the little machines fight back
Just working with DJWillis right now on getting MIDI sorted out and I thought I'd start a developer thread about this for others to benefit, if needed ..
I'm doing all my development *on* the Pandora, so there are some package dependencies that need to be sorted out, but its pretty nice right now - I've got fully stable, tight, MIDI working on the Pandora!
First up to make sure that USB works - I have a hub plugged in and a USB-MIDI interface cable plugged into the hub:
The device with ID 552d:4348 is my USB-MIDI Cable .. this is good, its being seen ..
Great! Well, I had to get the following packages from DJWillis, however, to make this all work:
Now before you go off and pester DJWillis, please consider that this is a developer thread - pester me for these modules if you *really* need them and want to try some things out as well, but otherwise just wait for the next OS release, as these modules are supposed to be included in the very next release for users.
Anyway MIDI I/O is ready to go .. lets try some hacking:
It works! (Ignore the Resource message, this is internal to my hakmidi app and doesn't mean much..)
So, this means that we have all the basics in place (thanks to the packages I lifted from DJWillis) to fully support MIDI I/O on the Pandora .. now I can continue with my Pandora MIDI Sequencer project in peace.
Oh, and port a few already-existing linux MIDI sequencer apps to it as well!
Anyway, just some notes .. will follow up with more details as I make some progress. Will probably port aconnectgui (a GUI to handle MIDI routing with a virtual patchbay) next, and then get my Virus hooked up to the Pandora and jam for a while ..
I'm doing all my development *on* the Pandora, so there are some package dependencies that need to be sorted out, but its pretty nice right now - I've got fully stable, tight, MIDI working on the Pandora!
First up to make sure that USB works - I have a hub plugged in and a USB-MIDI interface cable plugged into the hub:
Code:
ibi-pandora:~$ sudo lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 004: ID 552d:4348
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
The device with ID 552d:4348 is my USB-MIDI Cable .. this is good, its being seen ..
Code:
ibi-pandora:/media/mmcblk0p1/pandora/hak/audiohak$ sudo modprobe snd-usb-audio
ibi-pandora:/media/mmcblk0p1/pandora/hak/audiohak$ lsmod
Module Size Used by
snd_usb_audio 77408 0
snd_usb_lib 15648 1 snd_usb_audio
snd_rawmidi 21088 1 snd_usb_lib
snd_seq_device 7404 1 snd_rawmidi
snd_hwdep 7140 1 snd_usb_audio
...
Great! Well, I had to get the following packages from DJWillis, however, to make this all work:
Code:
-rwxrwxrwx 1 root root 64184 Jun 5 23:03 alsa-dev_1.0.20-r3.5_armv7a.ipk
-rwxrwxrwx 1 root root 1350 Jun 5 23:03 alsa-lib-dev_1.0.20-r3.5_armv7a.ipk
-rwxrwxrwx 1 root root 682 Jun 5 23:03 alsa-state-dev_0.2.0-r15.5_omap3-pandora.ipk
-rwxrwxrwx 1 root root 764 Jun 5 23:03 alsa-utils-dev_1.0.20-r1.5_armv7a.ipk
-rwxrwxrwx 1 root root 16458 Jun 5 23:03 alsa-utils-doc_1.0.20-r1.5_armv7a.ipk
-rwxrwxrwx 1 root root 21462 Jun 5 23:03 alsa-utils-midi_1.0.20-r1.5_armv7a.ipk
-rwxrwxrwx 1 root root 6168 Jun 10 2010 kernel-module-snd-hwdep_2.6.27-pandora+r19+git12942775ca2db1c41d190314da65f3a74899b0dc-r19.5_omap3-pandora.ipk
-rwxrwxrwx 1 root root 12638 Jun 10 2010 kernel-module-snd-rawmidi_2.6.27-pandora+r19+git12942775ca2db1c41d190314da65f3a74899b0dc-r19.5_omap3-pandora.ipk
-rwxrwxrwx 1 root root 5774 Jun 10 2010 kernel-module-snd-seq-device_2.6.27-pandora+r19+git12942775ca2db1c41d190314da65f3a74899b0dc-r19.5_omap3-pandora.ipk
-rwxrwxrwx 1 root root 5206 Jun 10 2010 kernel-module-snd-seq-midi-event_2.6.27-pandora+r19+git12942775ca2db1c41d190314da65f3a74899b0dc-r19.5_omap3-pandora.ipk
-rwxrwxrwx 1 root root 5846 Jun 10 2010 kernel-module-snd-seq-midi_2.6.27-pandora+r19+git12942775ca2db1c41d190314da65f3a74899b0dc-r19.5_omap3-pandora.ipk
-rwxrwxrwx 1 root root 18978 Jun 10 2010 kernel-module-snd-seq-oss_2.6.27-pandora+r19+git12942775ca2db1c41d190314da65f3a74899b0dc-r19.5_omap3-pandora.ipk
-rwxrwxrwx 1 root root 26596 Jun 10 2010 kernel-module-snd-seq_2.6.27-pandora+r19+git12942775ca2db1c41d190314da65f3a74899b0dc-r19.5_omap3-pandora.ipk
-rwxrwxrwx 1 root root 39020 Jun 10 2010 kernel-module-snd-usb-audio_2.6.27-pandora+r19+git12942775ca2db1c41d190314da65f3a74899b0dc-r19.5_omap3-pandora.ipk
-rwxrwxrwx 1 root root 13592 Jun 10 2010 kernel-module-snd-usb-caiaq_2.6.27-pandora+r19+git12942775ca2db1c41d190314da65f3a74899b0dc-r19.5_omap3-pandora.ipk
-rwxrwxrwx 1 root root 10020 Jun 10 2010 kernel-module-snd-usb-lib_2.6.27-pandora+r19+git12942775ca2db1c41d190314da65f3a74899b0dc-r19.5_omap3-pandora.ipk
Now before you go off and pester DJWillis, please consider that this is a developer thread - pester me for these modules if you *really* need them and want to try some things out as well, but otherwise just wait for the next OS release, as these modules are supposed to be included in the very next release for users.
Anyway MIDI I/O is ready to go .. lets try some hacking:
Code:
ibi-pandora:/media/mmcblk0p1/pandora/hak/audiohak$ ./hakmidi
Type control-c to exit.
@*time: [00000340 372750dc] **inbox: 0 outbox: 0 r_stat: fffffff5 w_stat: 000086b8 MIDI R/W STAT: [Resource temporarily unavailable] / [Unknown error^C4488]
It works! (Ignore the Resource message, this is internal to my hakmidi app and doesn't mean much..)
So, this means that we have all the basics in place (thanks to the packages I lifted from DJWillis) to fully support MIDI I/O on the Pandora .. now I can continue with my Pandora MIDI Sequencer project in peace.
Oh, and port a few already-existing linux MIDI sequencer apps to it as well!
Anyway, just some notes .. will follow up with more details as I make some progress. Will probably port aconnectgui (a GUI to handle MIDI routing with a virtual patchbay) next, and then get my Virus hooked up to the Pandora and jam for a while ..