⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addsd.test

📁 speech signal process tools
💻 TEST
字号:
#! /bin/sh# @(#)addsd.test	3.3 10/9/87 ESI# test script for addsd (1-ESPS)testsd -Tsine -l100 -p100 test1.sdcp test1.sd test2.sd# Now test -g option with zero gain# there should be 10 elements = 0, 38.26, 70.71, 92.39, 100, 92.39,# 70.71, 38.27, 0, -38.27echo "Test of -g option - "echo "there should be 10 elements = 0, 38.26, 70.71, 92.39, 100,"echo "                             92.39, 70.71, 38.27, 0, -38.27"addsd -p1:10 -g0 test1.sd test2.sd tst.sd ; psps tst.sdecho " "# Now test with -1 gain and standard input# There should be 10 elements - all about 0echo "Test of -p option - there should be 10 elements = 0"addsd -p1:10 -g-1 - test2.sd tst.sd < test1.sd ; psps -H tst.sdecho " "# Now test -t option# There should be 6 elements - all 0echo "Test of -t option"echo "There should be 6 elements - all 0"echo "1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1" | testsd -a- alt1.sdecho "-1 1 -1 1 -1 1" | testsd -a- alt2.sdaddsd -t alt1.sd alt2.sd test3.sdpsps -H test3.sd#Now test reuseecho "Test reuse -- there should be 20 zeros"addsd alt1.sd alt2.sd test3.sdpsps -H test3.sd# Now test stdin# There should be a PSPS listing with 10 zerosecho "Testing STDIN"echo "There should be a PSPS listing with 10 zeros"addsd -p1:10 -g-1 - test2.sd tst.sd < test1.sd ; psps -H tst.sdecho " "#Now test stdout# There should be a PSPS listing with 10 zerosecho " Testing STDOUT"echo " There should be a PSPS listing with 10 zeros"addsd -p1:10 -g-1 test1.sd test2.sd - > tst.sd ; psps -H tst.sdecho " "echo "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"| testsd -a- zeros.sdaddsd -t -g-1 zeros.sd test1.sd test3.sd# Now Test when f2 = f1# There should be a PSPS listing with 100 elements - all zeroecho "Test when f2 has same number of points as f1"echo "There should be 100 points - all about zero"echo "First check psps header for 100 elements"addsd test1.sd test3.sd test4.sdpsps -D test4.sd - | grep records:echo "Now see that they are all about zero"psps -H test4.sdtestsd -Tsine -p16 -l100 test1.sd# Now Test when f2 > f1# There should be a PSPS listing with 16 elements# They should all be about zeroecho "Test when f2 has more points than f1"echo "There should be 16 elements; they should all be about zero"addsd test1.sd test3.sd - | psps -H -echo " "

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -