#!/bin/csh
#
# Examples for preen
#
# parameters are: (1) input soundfile (use whitenoise if no input)
#                 (2) output soundfile name
#

if ($1 == "") then
   set SOUNDDIR = ../
else
   set SOUNDDIR = $1
endif

if ($2 == "") then
   set BINDIR = ../../bin
else
   set BINDIR = $2
endif


echo Creating $SOUNDDIR/preen1.wav

echo "\#     start     end     freq    decay   vol" > $SOUNDDIR/preen.data
echo "comb    100     10000    440    1.17297 0.2"  >> $SOUNDDIR/preen.data
echo "comb  10000     20000    140    0.17297 0.4"  >> $SOUNDDIR/preen.data
echo "comb  12000     29000   1760    1.17297 0.2"  >> $SOUNDDIR/preen.data
echo "comb  18000     20000   2760   40.1729  0.4"  >> $SOUNDDIR/preen.data
echo "comb  22000     30000   5000  100.0     0.05" >> $SOUNDDIR/preen.data
echo "comb  29000     45000    300    1.0     0.15" >> $SOUNDDIR/preen.data
echo "comb  44000     60000    220    2.0     0.1"  >> $SOUNDDIR/preen.data
echo "comb  34000     52000    110    0.5     0.2"  >> $SOUNDDIR/preen.data
echo "comb  50000     60000    660    1.1     0.3"  >> $SOUNDDIR/preen.data
echo "comb  55000     63000    330    1.1     0.4"  >> $SOUNDDIR/preen.data
echo "comb  60000     73000   1530   49.1     0.1"  >> $SOUNDDIR/preen.data

rm -f $SOUNDDIR/preen1.wav
$BINDIR/preen -a 1.2 -f $SOUNDDIR/preen.data \
     $SOUNDDIR/base/paperjam-French.wav $SOUNDDIR/preen1.wav >/dev/null
rm -f $SOUNDDIR/preen.data

echo Creating $SOUNDDIR/preen2.wav

rm -f $SOUNDDIR/preen2.wav
$BINDIR/preen -d4 -c50 $SOUNDDIR/preen2.wav >/dev/null





