#!/bin/sh

### Earwhip needs to be told a program that can play midi files; the
### program takes the file as its only argument, and plays the sound.
###
### We had been using timidity to do this, but lately I had trouble
### getting TiMidity++ 2.11.3 to send the sound directly to
### /dev/audio.  So this program is a front-end to timidity.  Of
### course, it assumes your system has the `play' program, or
### something like it, to play wav files.

timidity -Ow -o /tmp/help-timidity.wav ${1}
play -v 6 -d /dev/audio /tmp/help-timidity.wav
