#! /bin/sh
#
# Tao - A software package for sound synthesis with physical models
# Copyright (C) 1993-1999 Mark Pearson
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#
# taosf - normalise the sample data in a Tao output file (<name>.dat) to
#         fit the maximum sample range and add a WAVE (M$ RIFF) header.
#         Call the new file <name>.wav.

if !test -f tao2wav;
then
    echo 'taosf: failed, couldn't find the tao2wav program';
elif !test -f $1.dat;
then
    echo 'taosf: failed, couldn't find Tao output file ' $1.dat
else
    tao2wav $1.dat $1.wav
fi
