add timitidy.., Xaw3d, sdl-mixer

This commit is contained in:
suvari
2016-02-21 20:20:56 +02:00
parent 60f8555472
commit c6bd08833f
25 changed files with 112133 additions and 110476 deletions
@@ -0,0 +1,18 @@
--- TiMidity++-2.14.0/interface/xskin_c.c
+++ TiMidity++-2.14.0/interface/xskin_c.c
@@ -228,7 +228,6 @@
}
}
-#if 0
static void ctl_speana_data(double *val, int size) {
/* 0 <= val[n] <= (AMP*NCOLOR) */
@@ -280,7 +279,6 @@
return;
}
-#endif
/*ARGSUSED*/
static int ctl_open(int using_stdin, int using_stdout) {
@@ -0,0 +1,117 @@
#!/bin/sh
VERSION_MJ="1"
VERSION_MN="0"
VERSION_RV="0000"
VERSION_AP=""
VERSION="${VERSION_MJ}.${VERSION_MN}${VERSION_AP}"
PATCHDIR="/usr/share/timidity"
# Below is the user's local patchset
HOME_TARGET="$HOME/.timidity/current"
TARGET="${HOME_TARGET}"
show_help() {
echo "$0 ${VERSION}"
echo "Usage: $0 [-g] -s PATCHSET"
echo " or: $0 -r"
echo " or: $0 [OPTION]"
echo "Set the current timidity patch set to PATCHSET."
echo
echo "Mandatory arguments to long options are mandatory for short options too."
echo " -g Change the global patch set instead of the"
echo " user's patch set"
echo " -r Change current user's patch set to current"
echo " system patch set"
echo " -s [PATCHSET] Change to patch set PATCHSET"
echo " --help display this help and exit"
}
show_error() {
echo "$0: bad or missing argument"
echo "Try '$0 --help' for more information."
}
set_patch() {
TARGET=$1
PATCHSET=$2
# If something borken, no go
if [ ! -L ${TARGET} -a -e ${TARGET} ] || [ ! -d ${PATCHDIR}/${PATCHSET} ]; then
if [ ! -L ${TARGET} -a -e ${TARGET} ]; then
echo " Error: ${TARGET} exists and is not a symlink"
return -1
fi
if [ ! -d ${PATCHDIR}/${PATCHSET} ]; then
echo " Error: patch set ${PATCHSET} does not exist"
echo " Look in ${PATCHDIR}/ for patch sets"
return -1
fi
echo " Error: Undefined error."
return -1
fi
echo -n " * Switching to ${PATCHSET} Timidity patch set..."
rm -f ${TARGET} 2>/dev/null
ln -s ${PATCHDIR}/${PATCHSET} ${TARGET} 2>/dev/null
echo " [ OK ]"
return 0
}
restore_patches() {
TARGET=$1
echo -n " * Setting up local patch set to system global..."
rm -f ${TARGET} 2>/dev/null
ln -s ${PATCHDIR}/current ${TARGET}
echo " [ OK ]"
}
##############
# Processing #
#############
# Make sure home directory is there
if [ ! -e ${HOME}/.timidity ]; then
mkdir -p ${HOME}/.timidity
restore_patches $TARGET
fi
################
# No arguments #
###############
if [ -z "$1" ]; then
show_error
exit 1
fi
#########################
# Actual processing loop#
########################
while [ -n "$1" ]; do
case "$1" in
-g)
TARGET="/usr/share/timidity/current"
;;
-r)
restore_patches ${HOME_TARGET}
exit 0
;;
-s)
PATCHSET="$2"
shift
;;
--help)
show_help
exit 0
;;
*)
show_error
exit 1
;;
esac
shift
done
set_patch $TARGET $PATCHSET
@@ -0,0 +1,24 @@
##############################################################################
#
# timidity-update core configuration file
#
# Easy process:
#
# 1. Change directory to patch directory
# 2. Source current/timidity.cfg
#
# Current patch set will always be symlinked to current, so make sure that the
# proper timidity.cfg is in there
#
#
# - source /usr/share/timidity
# - source ~/.timidity/current
# - Make ~/.timidity/current point to the current patch set, or to whatever
# the individual user sets
# - If ~/.timidity/current isn't found, it will try
# /usr/share/timidity/current
#
dir /usr/share/timidity
dir ~/.timidity
source current/timidity.cfg
@@ -0,0 +1,39 @@
# TIMIDITY_OPTS
# Command line arguements to be passed to timidity. -iA is always used
# Common options:
# -Os : Output to ALSA pcm device
# -Oe : Output to esd
# -On : Output to NAS
# -Oj : Output to JACK
#
# -B<n>,<m> : Set number of buffer fragments(n), and buffer size(2^m)
#
# -EFreverb=0 : Disable MIDI reverb effect control
# -EFreverb=1[,level] : Enable MIDI reverb effect control
# "level" is optional to specify reverb level [0..127]
# This effect is only available in stereo
# (default)
# -EFreverb=2 : Global reverb effect
TIMIDITY_OPTS="-B2,8 -Os -EFreverb=0 -EFchorus=0"
# USE_ESOUND
# if you want to use esound, make this option yes and set the correct TIMIDITY_OPTS
USE_ESOUND="no"
# PATCHSET
# Define the sound patch set that timidity will use. Default is shompatches.
PATCHSET="shompatches"
# TIMIDITY_PCM_NAME
# This option can be used to choose an alternate ALSA pcm device. This will
# be most useful for users of the dmix alsa plugin or those with multiple
# cards. If you don't know what this is, chances are you want the default.
# default alsa device fails to work as a service, since pulseaudio is not reachable
# from the service scripts' environment. Workaround with using hw:0
#TIMIDITY_PCM_NAME="default"
TIMIDITY_PCM_NAME="hw:0"