[linux-audio-user] Playing MIDI

james at dis-dot-dat.net james at dis-dot-dat.net
Wed Mar 16 06:54:12 EST 2005


Sorry for top posting, but:

Have you tried aplaymidi?  It's part of/comes with alsa.

aplaymidi -l 

shows you ports

aplaymidi -p port midifile 

plays "midifile" to the mid port "port"

Works fine for me.

On Wed, 16 Mar, 2005 at 11:30AM +0100, Til Schubbe spake thus:
> Hallo,
> 
> I want to play a MIDI-file with a "normal", internal soundcard.
> 
> The sound-howto seems to be outdated (7/2001). The midi-howto tells
> something in "8.2 MIDI file players" so I installed pmidi but I get
> the following:
> 
> til at debian:~ - pmidi -l
>  Port     Client name                       Port name
> til at debian:~ -
> 
> Then I installed yiff which is now running on 14541/tcp and
> fluidsynth and got 2 soundfonts:
> 
> fluidsynth -ni Fender2.sf2 /tmp/export.mid
> fluidsynth: warning: Failed to pin the sample data to RAM; swapping
> is possible.
> fluidsynth: error: The "default" audio device is used by another
> application
> Failed to create the audio driver
> 
> I can play .wav with wavp.
> 
> Here is some module-info:
> 
> til at debian:~ - lsmod |egrep snd
> snd_seq_oss            33408  0 
> snd_seq_midi            7712  0 
> snd_rawmidi            21408  1 snd_seq_midi
> snd_seq_midi_event      6272  2 snd_seq_oss,snd_seq_midi
> snd_seq                55184  5
> snd_seq_oss,snd_seq_midi,snd_seq_midi_event
> snd_seq_device          7308  4
> snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
> snd_intel8x0           29376  0 
> snd_ac97_codec         76536  1 snd_intel8x0
> snd_pcm_oss            56992  0 
> snd_mixer_oss          19328  1 snd_pcm_oss
> snd_pcm                92808  3
> snd_intel8x0,snd_ac97_codec,snd_pcm_oss
> snd_timer              23044  2 snd_seq,snd_pcm
> snd                    55044  12
> snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq_midi_event,snd_seq,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
> soundcore               7648  1 snd
> snd_page_alloc          8324  2 snd_intel8x0,snd_pcm
> 
> I'm running Debian Sid on i386.
> 
> How can I play midi-files with my internal soundcard?
> 
> TIA
> Til
> 

-- 
"I'd crawl over an acre of 'Visual This++' and 'Integrated Development
That' to get to gcc, Emacs, and gdb.  Thank you."
(By Vance Petree, Virginia Power)



More information about the Linux-audio-user mailing list