ftp.nice.ch/pub/next/unix/audio/sox.12.12.NIHS.bs.tar.gz#/sox.12.12.NIHS.bs/src/sox.sh

This is sox.sh in view mode; [Download] [Up]

#!/bin/sh


SOX=/usr/local/bin/sox.bin

# SOX shell script to handle effect names as main name

# The shell is your friend.  Use it.

NAME=$0
switch $NAME in
	*/*)
		NAME=`echo $NAME | sed "s'^.*/''"`
	;;
esac

echo $NAME
RATE=8000
if [ "$1" = "-r" -a -n "$2" ] ; then
	RATE=$2
	shift
	shift
fi

switch $NAME in
	case *sox)
		exec $SOX $*
	;;
	case *echo|*avg|*pred|*stat|*vibro|*echo|*rate|*band|*lowp)
		$SOX -t sw -r $RATE - - $NAME $*
	;;
	case *kaiser)
		$SOX 
esac

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.