Hi,

I'm confused on MIDI deviecs. :)  Rather than bore you with the details of
what I think is right, (since it is most likely wrong), can someone explain
what each of the following do?:

/dev/snd/midiC0D0
/dev/snd/midiC1D0
/dev/snd/seq
/dev/sound/dmmidi
/dev/sound/midi00
/dev/sound/sequencer
/dev/sound/sequencer2

I have a Vortex AU8830 card using the alsa driver.  It has a MPU401 UART
that is enabled.  I also have an ISA Roland MPU401 card using snd-mpu401
that is loaded after the vortex driver.  My keyboard is attached to the
ISA MPU401 card, and it also has a waveblaster card on it.  The sound
card has nothing attached to its joystick port or internal connector.

Pressing keys on my keyboard plays notes on the waveblaster card, which
goes out the stereo connector on the mpu401 card and to the line-in on
the sound card.  So I know the MIDI setup is working apart from ALSA.

/dev/snd/midiC0D0:
cat and press keys on my keyboard, I see nothing.
cat a midi file to it, hear nothing.

/dev/snd/midiC1D0:
cat and press keys on my keyboard, I see some sort of note data, one/two bytes at a 
time.
cat a midi file to it, hear crazy stuff, dmesg complains:
ALSA ../../alsa-kernel/drivers/mpu401/mpu401_uart.c:206: cmd: tx timeout
(status = 0xff)

/dev/snd/seq:
cat and press keys, see nothing
cat a file to it,  "write error: Invalid argument"

/dev/sound/dmmidi:
cat: no such device

/dev/sound/midi00:
cat and press keys, see nothing
cat a file to it, hear nothing

/dev/sound/sequencer:
cat and press keys: see some sort of midi data, a whole bunch of bytes
at a time
cat a file to it: hear the correct song!

/dev/sound/sequencer2:
cat and press keys: see some sort of data, 3 bytes at a time
cat a file to it:  invalid argument and tx timeout in dmesg again


The data coming from midiC1D0, sequencer, and sequencer2 are all
different, but responds to my keyboard, so it must be the MIDI data
coming from the ISA MPU401 card, right?

Here is the different dumps of data, I press and release 5 successive
notes on the keyboard:

/dev/snd/midiC1D0:
90 59 30 80 59 2c 90 5b 44 80 5b 38 90 5d 55 
80 5d 1e 90 5f 50 80 5f 38 90 60 5a 80 60 32

/dev/sound/sequencer:

02 00 00 00  05 FE 01 00  02 6A 00 00  05 90 01 00
05 59 01 00  05 34 01 00  02 78 00 00  05 80 01 00
05 59 01 00  05 28 01 00  02 82 00 00  05 90 01 00
05 5B 01 00  05 48 01 00  02 8F 00 00  05 80 01 00
05 5B 01 00  05 36 01 00  02 9A 00 00  05 90 01 00
05 5D 01 00  05 40 01 00  02 A6 00 00  05 80 01 00
05 5D 01 00  05 24 01 00  02 B2 00 00  05 90 01 00
05 5F 01 00  05 3D 01 00  02 BE 00 00  05 80 01 00
05 5F 01 00  05 3A 01 00  02 CE 00 00  05 90 01 00
05 60 01 00  05 55 01 00  02 DA 00 00  05 80 01 00
05 60 01 00  05 38 01 00

/dev/sound/sequencer2:

81 02 22 C0  00 00 00 00  93 01 90 00  59 32 00 00
93 01 80 00  59 25 00 00  93 01 90 00  5B 44 00 00
93 01 80 00  5B 30 00 00  93 01 90 00  5D 48 00 00
93 01 80 00  5D 1E 00 00  93 01 90 00  5F 4C 00 00
93 01 80 00  5F 38 00 00  93 01 90 00  60 55 00 00
93 01 80 00  60 32 00 00


Now, I know the /dev/sound/* devices are the OSS devices, but I don't
know what they serve, why there are a sequencer and sequencer2 with
different data from each other and from /dev/snd/midiC1D0.  I am
assuming that /dev/snd/midiC0D0 is the mpu401 device for the aureal
card, and the /dev/snd/midiC1D0 is my isa mpu401 card.  But why cannot I
cat a midi file to it like the OSS sequencer?  How should I use the data
coming from it?

Also the /dev/sound/midi00 I guess is the midi device on the vortex
card.  Why does the vortex card not apparently have a sequencer
associated with it?  Why does the isa mpu401 card have two sequencers
apparently associated with it, that produce different data?

Please, any clearing up of this stuff would be much appreciated.
Thanks!

-- 
Ryan Underwood, <nemesis at icequake.net>, icq=10317253


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to