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

📄 rundemo.sh

📁 speech signal process tools
💻 SH
字号:
#! /bin/sh# @(#)rundemo.sh	1.5 1/18/93 ERL# top level script for the testsignal demo# check syntaxcase $# in1)        # any output files go in directory specified by $1	demo_temp=$1	;;*)	demo_temp=/usr/tmp/Edemo$$	echo "no temporary directory specified, will use $demo_temp"	;;esac# create temp directory if necessaryif test ! -d $demo_tempthen  mkdir $demo_temp 2> /dev/nullfi# make sure we have full path for temp directory and put name in $HOMEcur_dir=`pwd`cd $demo_tempdemo_temp=`pwd`cd $cur_dir#Is temp writabletouch $demo_temp/foo.$$ 2> /dev/nullif test -f $demo_temp/foo.$$ then   rm $demo_temp/foo.$$ else    echo "$0: can't create $demo_temp or can't write in it; exiting. "   exit 1fi#Put demo_temp into the environmentexport demo_temp# set various paths for ESPS and xwaves+EBASE=`get_esps_base`ESPS_MENU_PATH="./menus:$EBASE/lib/waves/menus"export ESPS_MENU_PATHESPS_INPUT_PATH="./files:$demo_temp:$EBASE/lib/files"export ESPS_INPUT_PATHESPS_PARAMS_PATH="$demo_temp:./params:$EBASE/lib/params"export ESPS_PARAMS_PATHWAVES_INPUT_PATH="./files:$demo_temp:$EBASE/lib/waves/files"export WAVES_INPUT_PATHWAVES_MENU_PATH="./menus:$EBASE/lib/waves/menus"export WAVES_MENU_PATHWAVES_COMMAND_PATH="./wcommands:$EBASE/lib/waves/commands"export WAVES_COMMAND_PATHWAVES_COLORMAP_PATH="./colormaps:$EBASE/lib/waves/colormaps"export WAVES_COLORMAP_PATHWAVES_PROFILE_PATH="$demo_temp:$EBASE/lib/waves"export WAVES_PROFILE_PATH# note, we put $demo_temp on the path since play links and other # executables might go therePATH="$demo_temp:./bin:$PATH"export PATHUSE_ESPS_COMMON=offexport USE_ESPS_COMMONESPS_VERBOSE=0export ESPS_VERBOSE# define a unique socket number for use by the demo'; from here on # in, both xwaves and send_xwaves will use this number.  WAVES_PORT=`randport -S $$`export WAVES_PORT# try to set up for the right audio outputguess_audio $demo_temp# put the $demo_temp file in the .wave_pro so that it will be used for# output filessed -e s%@DEMO_TEMP@%$demo_temp%  files/wave_pro > $demo_temp/wave_pro# start waves; # initialization is done via demoinit.WC as specified # in wave_proxwaves -w wave_pro -s &xtext -Wp 555 350 -F README &# now we put up a demo control panelmbuttons -q1 -X555 -Y 210 -w"Test Signal Controls" -i "test" -b 2 tsignal.BM# after the user quits fbuttons, we kill xwaves+send_xwaves @demoquit.WC# and we remove all the test filesrm -f $demo_temp/testsig.sd demo_temp/tsig*

⌨️ 快捷键说明

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