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

From: Jeremiah Benham <jjbenham@email-addr-hidden>
Date: Fri Aug 28 2009 - 14:51:30 EEST

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.

Jeremiah

>
> 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@email-addr-hidden
> http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Fri Aug 28 16:15:04 2009

This archive was generated by hypermail 2.1.8 : Fri Aug 28 2009 - 16:15:04 EEST