[LAU] Command-line midi player with fast forward, pause, rewind?

Jeremiah Benham jjbenham at chicagoguitar.com
Fri Aug 28 07:51:30 EDT 2009

On Thu, Aug 27, 2009 at 11:06:51PM -0700, Ken Restivo wrote:
> I'd love to find a command-line MIDI file player that will use ALSA MIDI (not its own internal synth), and also will accept arrow keys or some other key commands on stdin to fastforward, rewind, pause, play, etc.

Maybe you can pipe the output of timidity to mplayer. If it doesn't work in a pipe you can write a shell script to write it to a temporary file then play it in mplayer. The script would look something like:

timidity -Ow $1
mplayer `basename $1 .mid`.wav
rm `basename $1 .mid`.wav

This above script will only work if the file is .mid I think though. 


> There seem to be a ton of MIDI players for the command line, but they all seem to not be interactive. I can't seem to figure out if ecasound can do the fast forward and rewind stuff, and I find Timidity to bewildering to contemplate.
> -ken
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user at lists.linuxaudio.org
> http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

More information about the Linux-audio-user mailing list