[PlanetCCRMA] pd alsa jack midi
Tim Moody
timmoody at sympatico.ca
Wed Feb 11 17:38:01 PST 2004
OK. I'm getting a little closer. I know from verbose mode that pd is trying:
device 1: tried /dev/midi READ/WRITE; returned -1
device 0: tried /dev/midi00 READ/WRITE; returned 6 (this is the only
/dev/midi* device that I can cat without a 'No such device' error, but even
then it returns no data.
In the mean time I learned about pmidi and sfxload from
http://ccrma-mail.stanford.edu/pipermail/planetccrma/2003-December/003580.html
(As an aside, asfxload did not work.)
pmidi -p "65:0" 1812.mid actually plays and the alsa patch shows the connection
I tried starting pd with -midioutdev "65:0" and other combinations, but it
looks like even pd -alsa only tries the OSS midi devices even though it
uses alsa audio.
It seems the alsa devices are /dev/snd/midi* of which cat does not complain
about these
crw-rw-rw- 1 root root 116, 8 Jan 14 19:01 /dev/snd/midiC0D0
crw-rw-rw- 1 root root 116, 9 Jan 14 19:01 /dev/snd/midiC0D1
crw-rw-rw- 1 root root 116, 10 Jan 14 19:01 /dev/snd/midiC0D2
crw-rw-rw- 1 root root 116, 11 Jan 14 19:01 /dev/snd/midiC0D3
Sooo, are these the devices and do I need a symlink from /dev/midi to one
of them?
At 05:49 PM 2/10/2004 -0800, Fernando Pablo Lopez-Lezcano wrote:
> > Before I switched from OSS to alsa I was able to read data from my midi
> > keyboard /dev/midi0 or /dev/midi00, I don't remember which.
> >
> > I have
> >
> > [timm at neptune timm]$ ll /dev/mi*
> > crw------- 1 timm root 35, 0 Sep 15 09:40 /dev/midi0
> > crw------- 1 timm root 14, 2 Sep 15 09:40 /dev/midi00
> > crw------- 1 timm root 14, 18 Sep 15 09:40 /dev/midi01
> > crw------- 1 timm root 14, 34 Sep 15 09:40 /dev/midi02
> > crw------- 1 timm root 14, 50 Sep 15 09:40 /dev/midi03
> > crw------- 1 timm root 35, 1 Sep 15 09:40 /dev/midi1
> > crw------- 1 timm root 35, 2 Sep 15 09:40 /dev/midi2
> > crw------- 1 timm root 35, 3 Sep 15 09:40 /dev/midi3
> >
> > if I cat each one, all say invalid device except midi00.
>
>Perhaps pd is not trying midixx, only midix. You could try this:
> cd /dev
>save current device to another file:
> mv midi0 midi0old
>link to active device (the one that did not give an error):
> ln -s midi00 midi0
>
>Try pd again.....
>-- Fernando
More information about the PlanetCCRMA
mailing list