setmax.test

来自「speech signal process tools」· TEST 代码 · 共 57 行

TEST
57
字号
#!/bin/sh## This material contains unpublished, proprietary software of # Entropic Research Laboratory, Inc. Any reproduction, distribution, # or publication of this work must be authorized in writing by Entropic # Research Laboratory, Inc., and must bear the notice: ##    "Copyright (c) 1989-1990  Entropic Speech, Inc. #    "Copyright (c) 1990-1996  Entropic Research Laboratory, Inc. #                   All rights reserved"## The copyright notice above does not evidence any actual or intended # publication of this source code.     ## @(#)setmax.test	1.2	1/27/97	ESI/ERL# # Written by:  John Shore# Checked by:# Revised by:# # Brief description:#  test script for setmax# ESPS_VERBOSE=0export ESPS_VERBOSEUSE_ESPS_COMMON=offexport ESPS_VERBOSE# Make sampled data filetestsd -a- test.sd <<EOD	-1500.  20000. -1000 10000  -33700. 180000EODecho "should show max_value = 180000"setmax  test.sd out.sdpsps -lD out.sd | grep max_value echo "comparing output sample values"pspsdiff -H test.sd out.sdecho ""echo "should show max_value = 33700"copysd -p2:5 test.sd test1.sdcat test1.sd | setmax - out.sdpsps -lD out.sd | grep max_value echo "comparing output sample values"pspsdiff -H test1.sd out.sdecho ""echo "should show max_value = 20000"copysd -p1:3 test.sd test2.sdsetmax test2.sd - | cat >out.sdpsps -lD out.sd | grep max_value echo "comparing output sample values"pspsdiff -H test2.sd out.sdecho "test script done"

⌨️ 快捷键说明

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