-   Linux - Software (
-   -   ALSA MIDI on Debian Sarge (

sulfa 12-16-2004 02:06 AM

ALSA MIDI on Debian Sarge

My machine is a Dell Inspiron XPS running Debian Sarge, stock kernel 2.4.25. I have successfully installed ALSA and configured it to work on my Intel ICH5 sound card (snd-intel8x0 module). Everything runs as it should except MIDI.

I installed pmidi and used it to check my available MIDI ports:

pmidi -l
Port    Client name                      Port name
64:0    Intel ICH5 MIDI - Rawmidi 0      Intel ICH5 MIDI

So, I ran:

pmidi -p 64:0 MIDIFILE.mid
There was no sound, and eventually the process terminated. I have done some testing, and observed that pmidi will stop earlier on shorter songs - this indicates that the file is indeed playing, but ALSA is encountering some interference, maybe with another module.

Here's the relevant slice of lsmod:

snd-seq-midi            3232  1  (autoclean)
snd-seq-oss            23104  0  (autoclean)
snd-seq-midi-event      2960  0  (autoclean) [snd-seq-midi snd-seq-oss]
snd-seq                36048  4  (autoclean) [snd-seq-midi snd-seq-oss snd-seq-midi-event]
snd-intel8x0          17320  1
snd-ac97-codec        39804  0  [snd-intel8x0]
snd-pcm-oss            36420  0
snd-mixer-oss          11384  0  [snd-pcm-oss]
snd-pcm                54656  0  [snd-intel8x0 snd-pcm-oss]
snd-timer              13860  0  [snd-seq snd-pcm]
snd-page-alloc          5488  0  [snd-intel8x0 snd-pcm]
gameport                1452  0  [snd-intel8x0]
snd-mpu401-uart        2880  0  [snd-intel8x0]
snd-rawmidi            11904  0  [snd-seq-midi snd-mpu401-uart]
snd-seq-device          3620  0  [snd-seq-midi snd-seq-oss snd-seq snd-rawmidi]snd                    28804  0  [snd-seq-midi snd-seq-oss snd-seq-midi-event snd-seq snd-intel8x0 snd-ac97-codec snd-pcm-oss snd-mixer-oss snd-pcm snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore              3492  8  [snd]

I'm pretty sure ALSAmixer is set correctly, too. There isn't a special control for MIDI sound, is there?

I have installed Timidity too, and it works great, but I really need actual MIDI support. Any ideas?

sulfa 12-16-2004 04:21 PM

Now, this is bizarre...

I coded up a quick MIDI player in Java (it's no big feat, Java's MIDI library is breathtakingly easy to work with) on my other machine, where MIDI already works.

I installed the player on my Debian box and MIDI works perfectly. So I guess the problem is with pmidi. Does anyone know why pmidi would fail? Maybe it uses a different soundfont by default? I'm a newbie at MIDI :P


All times are GMT -5. The time now is 02:58 PM.