#
# testfile for makesd
#
# @(#)testfile	1.1 1/26/88 ESI
#
atosps - rc.fana << XXX 
{
01 d
02 6a1a
03 Tue Dec  8 15:40:50 1987 
04 1.51
05 fea_edit
06 3.1
07 10/16/87
53 parker
08 1
09 1
0b e
0c 2
0d 1
10 rc.fana
12 fea_edit rc.fana 

 Converted from rc.fana by spstoa.
52
1 2 0
frame_len LONG 1 0 
num_pulses LONG 1 0 
frame_type CODED 1 0 
 NONE
 UNKNOWN
 VOICED
 UNVOICED
 SILENCE
 TRANSITION
voiced_fraction FLOAT 1 0 
raw_power FLOAT 1 1 
lpc_power FLOAT 1 1 
p_pulse_len FLOAT 1 1 
spec_param FLOAT 10 1 

@nan LONG 1 8000 
@order SHORT 1 10 
@src_sf FLOAT 1 8000 
@method CODED 1 [ NONE AUTOC BURG COV MBURG STRCOV VBURG ] AUTOC 
@frmlen LONG 1 200 
@maxlpc LONG 1 1 
@spec_rep CODED 1 [ NONE RC LAR LSF AUTO AFC CEP AF ] RC 
@order_vcd LONG 1 0 
@maxraw LONG 1 1 
@start LONG 1 1 
@filters CODED 1 [ NO YES ] NO 
@order_unvcd LONG 1 10 
@DC_removed CODED 1 [ NO YES ] NO 
@maxpulses LONG 1 1 

}

#Tag 1
#frame_len	200 
#num_pulses	0 
#frame_type	NONE 
#voiced_fraction	0 
#raw_power	274850 
#lpc_power	260016 
#p_pulse_len	0 
#spec_param	-4 -3 -2 -1 0 1 2 3 4 5

#Tag 1
#frame_len	200 
#num_pulses	0 
#frame_type	NONE 
#voiced_fraction	0 
#raw_power	274850 
#lpc_power	260016 
#p_pulse_len	0 
#spec_param	-4 -3 -2 -1 0 1 2 3 4 5
XXX

make_sd -fspec_param rc.fana test.sd
echo 
echo
echo this makes an sd file containing 10 records, -4 to 5
psps test.sd
echo hit return to continue
read a
clear
echo this should get usage because we only gave one file argument
make_sd -fspec_param rc.fana
echo this should put the above test file into stdout piped into psps
make_sd -fspec_param rc.fana - | psps -
echo this should complain that it cannot open the file
make_sd -fspec_param foo.ana -
echo this should complain about foo not being a valid field
make_sd -ffoo rc.fana -

echo this is make_sd without a -f flag
make_sd rc.fana -

rm rc.fana
