Hi,
On Mon, May 17, 2010 at 11:28:42AM +0200, Daniel Wilcox wrote:
Why udev rules then ...? I use the portaudio index of the soundcard to pass to pd with -audiodev on startup (I use -nogui and alsa) and another script which parses aconnect -io to determine the alsa mdii index, then calls aconnect again to connect pd with the midi device.
Actually, perhaps you are right as it would be nice to have udev run aconnect whenever my midi device is plugged in.
If your devices are different, you can use the vendor and product ids to specify the soundcard index ALSA uses: http://alsa.opensrc.org/index.php/MultipleUSBAudioDevices
If you really must use udev, maybe this helps: http://alsa.opensrc.org/index.php/Udev
Frank