aboutsummaryrefslogtreecommitdiff
path: root/audio/TiMidity++/rc.timidity
blob: 37d9c1d8a2b51d4fea6e10151eb7915002d72874 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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