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

📄 stats_bar.sh

📁 speech signal process tools
💻 SH
字号:
#!/bin/sh# @(#)stats_bar.sh	1.3 9/9/93# This script is an example of creates a toolbar with a button that # doesn't correspond to a current menu operation.  # The script (named stats_bar.sh) is itself called via a menu selection.  # Args are: # $1 = object name# $2 = file  name# $3 = loc_x  # $4 = loc_y  (loc_x, locy give upper left corner of data view) ## Here is the waves command to add the toolbar creator to the menus:##  add_op name "Create output stats toolbar" command stats_bar.sh _name _file _loc_y _loc_x##set -xpname=statbar$$name=$1file=$2locx=$3locy=`echo $4 70 - p q | dc`   #note the hack to move itshiftshiftshiftshiftfull_title="Stats ($file)"# create a bbox menu file containing button definitionsbbox_file=.wvtmp_bbox$$rm -f $bbox_filetouch $bbox_fileecho \"Output segment stats\" $name op file $file op out_stats >> $bbox_file# Create a command file that defines the new op, pops up a panel with# a button for it then removes the temporary menu and command filescmd_file=.wvtmp_cmd$$rm -f $cmd_filetouch $cmd_file# define the operations echo "add_op name out_stats menu none command fea_stats _range_samp _file" >> $cmd_file# pop up the panel echo "make_panel loc_x $locx loc_y $locy name $pname title \"$full_title\" file `pwd`/$bbox_file" >> $cmd_fileecho "shell rm $bbox_file" >> $cmd_fileecho "shell rm $cmd_file" >> $cmd_filesend_xwaves @$`pwd`/$cmd_file

⌨️ 快捷键说明

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