#!/bin/sh

# Convert 2-channel mu-law input NIST file to ESPS and display
#set -x

input=sw3173.wav
output=$input.sd

echo "Converting from mu-law NIST file $input to ESPS file $output..."

btosps -c "ready for mu" -S1024 -t byte $input - | bhd - - \
	| mu2esps - - | bhd - - | btosps -c "convert back" -n2 - $output

echo "Displaying $output with waves+..."

xwaves $output

echo "Don't forget to remove $output when done!"

rm $output

