diff options
Diffstat (limited to 'audio/TiMidity++/rc.timidity')
-rw-r--r-- | audio/TiMidity++/rc.timidity | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/audio/TiMidity++/rc.timidity b/audio/TiMidity++/rc.timidity new file mode 100644 index 0000000000..37d9c1d8a2 --- /dev/null +++ b/audio/TiMidity++/rc.timidity @@ -0,0 +1,25 @@ +#!/bin/sh +# Start/stop/restart the TiMidity++ ALSA sequencer client +# Have a look at README.alsaseq in the TiMidity++ docs for more info. + +TIMIDITY_OPTIONS="-iAD -Os -B2,8" + +# If CPU usage is too high, try disabling the reverb and chorus effects. +#TIMIDITY_OPTIONS="$TIMIDITY_OPTIONS -EFreverb=0 -EFchorus=0" + +case "$1" in + 'start') + timidity $TIMIDITY_OPTIONS + ;; + 'stop') + killall timidity + ;; + 'restart') + killall timidity + sleep 1 + timidity $TIMIDITY_OPTIONS + ;; + *) + echo "Usage: $0 {start|stop|restart}" + ;; +esac |