View previous topic :: View next topic |
Author |
Message |
jathey n00b
Joined: 22 Oct 2002 Posts: 48
|
Posted: Tue Feb 25, 2003 2:09 am Post subject: SoundBlaster Live!, Live!Drive, MIDI, so close... |
|
|
Hi everyone,
I'm trying to get MIDI working with my SB Live! and an external synth, connected to the MIDI ports of my Live! Drive. I'm using ALSA 0.9 and the ALSA driver for my Soundblaster.
When I do the following -
Code: | cat bwv863.mid > /dev/sound/midi00
| the midi comes flying out of my synth as fast as it can be piped. (The midi is the G# Prelude and Fugue from Bach's WTC I, for anyone who cares .) Therefore I know that at least the /dev/sound/midi00 device is working.
Here's what my /dev/snd and /dev/sound directories look like -
Code: | $ ls -l /dev/sound
total 0
crw-rw---- 1 root audio 14, 12 Dec 31 1969 adsp
crw-rw---- 1 root audio 14, 4 Dec 31 1969 audio
crw-rw---- 1 root audio 14, 9 Dec 31 1969 dmmidi
crw-rw---- 1 root audio 14, 3 Dec 31 1969 dsp
crw-rw---- 1 root audio 14, 2 Dec 31 1969 midi00
crw-rw---- 1 root audio 14, 0 Dec 31 1969 mixer
$ ls -l /dev/snd
total 0
crw-rw---- 1 root audio 116, 0 Dec 31 1969 controlC0
crw-rw---- 1 root audio 116, 4 Dec 31 1969 hwC0D0
crw-rw---- 1 root audio 116, 8 Dec 31 1969 midiC0D0
crw-rw---- 1 root audio 116, 24 Dec 31 1969 pcmC0D0c
crw-rw---- 1 root audio 116, 16 Dec 31 1969 pcmC0D0p
crw-rw---- 1 root audio 116, 25 Dec 31 1969 pcmC0D1c
crw-rw---- 1 root audio 116, 26 Dec 31 1969 pcmC0D2c
crw-rw---- 1 root audio 116, 19 Dec 31 1969 pcmC0D3p
lr-xr-xr-x 1 root audio 17 Feb 24 20:03 seq -> /dev/sound/midi00
crw-rw---- 1 root audio 116, 33 Dec 31 1969 timer
$ls -l /dev/sequencer
lr-xr-xr-x 1 root root 17 Feb 24 14:45 /dev/sequencer -> /dev/sound/midi00
|
First of all, what's the difference between /dev/snd and /dev/sound ? Is one ALSA and the other OSS? The symlink between /dev/snd/seq and /dev/sound/midi00 I made myself, and I think I also made the one from /dev/sequencer to /dev/sound/midi00, but I'm not positive.
What doesn't work are commands like the following -
(pmidi -l lists possible output "ports")
Code: | $ pmidi -l
Could not open sequencer Inappropriate ioctl for device
$ kmid bwv863.mid
KMid 2.0 Copyright (C) 1997,98,99,2000,01 Antonio Larrosa Jimenez. Malaga (Spain)
KMid comes with ABSOLUTELY NO WARRANTY; for details view file COPYING
This is free software, and you are welcome to redistribute it
under certain conditions
ALSA lib seq_hw.c:451:(snd_seq_hw_open) SNDRV_SEQ_IOCTL_PVERSION failed: Inappropriate ioctl for device
handle==0
ALSA lib seq_hw.c:451:(snd_seq_hw_open) SNDRV_SEQ_IOCTL_PVERSION failed: Inappropriate ioctl for device
handle==0
|
Anyone have any ideas?
James |
|
Back to top |
|
|
Ian Goldby Guru
Joined: 18 May 2002 Posts: 539 Location: (Inactive member)
|
Posted: Sat Mar 22, 2003 8:03 pm Post subject: |
|
|
You shouldn't have made those symlinks, I believe.
/dev/snd is the ALSA system, and /dev/sound is the OSS system. I take it you're only interested in ALSA, so let's stick to that.
Here's my /dev/snd: Code: | ls -l /dev/snd
total 0
crw------- 1 ian audio 116, 0 Jan 1 1970 controlC0
crw------- 1 ian audio 116, 32 Jan 1 1970 controlC1
crw------- 1 ian audio 116, 64 Jan 1 1970 controlC2
crw------- 1 ian audio 116, 40 Jan 1 1970 midiC1D0
crw------- 1 ian audio 116, 72 Jan 1 1970 midiC2D0
crw------- 1 ian audio 116, 73 Jan 1 1970 midiC2D1
crw------- 1 ian audio 116, 74 Jan 1 1970 midiC2D2
crw------- 1 ian audio 116, 75 Jan 1 1970 midiC2D3
crw------- 1 ian audio 116, 24 Jan 1 1970 pcmC0D0c
crw------- 1 ian audio 116, 16 Jan 1 1970 pcmC0D0p
crw------- 1 ian audio 116, 1 Jan 1 1970 seq
crw------- 1 ian audio 116, 33 Jan 1 1970 timer |
C0 is my internal Intel8x0 sound card that has no MIDI or synth capability. C1 is the serial MIDI port (snd-serial-u16550), and C2 is snd-virmidi - a kind of patch bay.
Get rid of your seq symlink. A sequencer is not the same as a raw MIDI port. The sequencer handles timing, whereas a raw MIDI port just sends raw data to the device as soon as it gets it. I also don't have a /dev/sequencer, and I don't need one for pmidi to work.
Perhaps deleting the symlinks will solve your problems. It might be that pmidi is trying to use one of them since it is there, and finding that it does not connect to the type of device it expects to see. |
|
Back to top |
|
|
jathey n00b
Joined: 22 Oct 2002 Posts: 48
|
Posted: Mon May 19, 2003 1:36 am Post subject: Fixed it, almost |
|
|
https://bugs.gentoo.org/show_bug.cgi?id=21227
In short, I noticed that the alsasound init script was not modprobing my synth device. I modprobed it myself, and it works fine. I don't know what alsasound wasn't trying to modprobe my MIDI, but this workaround will do for now:
Code: | # modprobe snd-emu10k1-synth |
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|