Hi. I’m trying to use some customised MIDI controllers built with Teensy to control PD patches on my Raspberry Pi. After lots of troubleshooting I’ve narrowed down some issues and I’m wondering whether whether the Pisound is causing some trouble.
Currently trying this with Raspbian Jessie Lite and PD 0.46, but the same thing was happening with Stretch Lite and PD 0.47.
Here are my symptoms:
-
If I run a PD patch that uses USB MIDI input before I install the Pisound it works fine. I do this by plugging in my Teensy via USB and launching the patch with
pd -nogui -midiindev 1 miditest.pd
-
If I install the Pisound software (using the
curl
command as described here the MIDI input no longer works. As part of this install it asks me to upgrade the kernel. -
With the Pisound software installed, the rPi still sees the MIDI controller, but PD does not, no matter what startup flags I use. Since doing that I can’t seem to get any MIDI input in PD, no matter what startup flags I use. Most tellingly, if I run
pd -nogui -listdev
(without the Pisound plugged in) I get the following list:
audio input devices:
bcm2835 ALSA (hardware)
bcm2835 ALSA (plug-in)
Teensy MIDI (hardware)
Teensy MIDI (plug-in)
audio output devices:
bcm2835 ALSA (hardware)
bcm2835 ALSA (plug-in)
Teensy MIDI (hardware)
Teensy MIDI (plug-in)
API number 1
no midi input devices found
no midi output devices found
I find it very odd that it lists my Teensy MIDI device as an audio input and output, and also says that no midi input or output devices have been found. If I have the Pisound plugged in then it is listed as and audio device (in and out) but it still says no midi devices are found. It is somewhat understandable that my patches will not therefore recognise any midi activity, but I don’t understand why PD isn’t seeing the MIDI devices after installing Pisound.
If I run aconnect -o I can see that the Raspberry Pi recognises the device:
client 14: ‘Midi Through’ [type=kernel]
0 ‘Midi Through Port-0’
client 20: ‘Teensy MIDI’ [type=kernel,card=1]
0 ‘Teensy MIDI MIDI 1’
and if I run aseqdump -p 20 the MIDI data comes streaming through normally. I’m interpreting this to mean that the MIDI device is working, and the alsamidi system is working on the rPi. However something is stopping it from being recognised by PD.
Any ideas? Thanks!