wrel20.me
来自「speech signal process tools」· ME 代码 · 共 978 行 · 第 1/4 页
ME
978 行
programs are run. EDR format output files can be obtained in generalfor all programs by creating the UNIX environment variable ESPS_EDRand giving it the value "on". The conversion program \fIaddfeahd\fP(add an ESPS header to an existing headerless, binary file) has anoption to specify whether the data are in NATIVE or EDR format. .lpThe ESPS and \fIwaves\fP+ input routines can not in general handlefiles written in native mode by other architectures \- files to beexchanged should be written in EDR format unless the native modeshappen to match. This lack of generality is a compromise thatsupports file sharing but only requires a single machine-dependentconversion module for each architecture (the module converts betweennative mode and ESPS external format). Some exceptions to theforegoing have been allowed for. In particular, the inputroutines will usually recognize cases where NATIVE modes differ onlywith respect to byte order. Thus, for example, NATIVE format filesfrom a DECStation 3100 or Sun 386i can be read by \fIwaves\fP+running on a Sun 4 or Concurrent (and \fIvice\fP \fIversa\fP)..lpUsing the ESPS external format can result in increased file I/O times,but the feature can be turned off (so that native formats are alwaysused) when it isn't needed. As mentioned, the default is to usenative formats. .sh 2 "New Menu Item".lpA "kill-window" item has been added to display menus. This is usefulsince some window managers do not facilitate the operation. (Forexample, \fItwm\fP's window kill operation ends up terminating\fIwaves\fP+). .sh 2 "New \fIwaves\fP+ Globals".lpThe following globals have been added in \fIwaves\fP+ Version 2.0:.nf.i fea_sd_special max_buff_size temp_path write_common readout_bar_height min_spec_height min_spec_width.r.fi.npThe global \fIfea_sd_special\fP was added to control the handling ofFEA_SD files (see the description above). It is set on \fIwaves\fP+startup to be the same setting as \fIuse_dsp32\fP after the presenceor absence of a DSP board is established (i.e., 1 if a board ispresent, 0 otherwise). Thus, special treatment for FEA_SD filesoccurs by default only if a board is present. Processing of the\fIwaves\fP+ startup profile now occurs after the board check, so an explicit setting of \fIfea_sd_special\fP in your profile will takeprecedence over the default. .npThe global \fImax_buff_size\fP determines a limit on the number ofbytes of storage that \fIwaves\fP+ will attempt to allocate forin-memory data storage for any one signal. Previously this was acompiled-in constant with a value of 1048576. The value is now2000000 by default, and this can be changed with an entry for\fImax_buff_size\fP in the startup profile or with the \fIset\fPcommand. If this limit is set high enough for a signal to becontained entirely in memory, operations such as scrolling through thesignal will be faster than they would be otherwise, since \fIwaves\fP+will not have to reread data repeatedly from a disk file. Smallervalues of the limit may be necessary to prevent \fIwaves\fP+ fromfailing by running out of memory..npThe global \fItemp_path\fP determines the directory in which\fIwaves\fP+ will write temporary files (e.g., files generated byexternal ESPS calls that result from \fIwaves+\fP commands\fIadd_espsf\fP or \fIadd_espst\fP). The default for \fItemp_path\fPis "." (i.e., current working directory). .npThe global \fIwrite_common\fP determines whether or not ESPS Common iswritten whenever the user marks a new segment in a \fIwaves\fP+window. If \fIwrite_common\fP is 1, each time the mouse is used tochange the position of segment markers, the file name ("filename"),starting record ("start"), and number of records ("nan") are writtento ESPS Common; if write_common is 0, Common is not written. For moreinformation about ESPS Common processing, see various ESPS manualpages (e.g., \fIgetparam\fP (1\-\s-1ESPS\s+1) \fIread_params\fP (3\-\s-1ESPS\s+1), \fIxprompt\fP (1\-\s-1ESPS\s+1)). .npThe global \fIreadout_bar_height\fP determines the height of aregion containing digital readouts for waveform and spectrogramwindows. This readout bar is below the title bar and above thescrollbar. The readout bar is only used under X Windows, so theglobal can be ignored if you are running under Sunview. Under Sunview, the readout bar is not used, since thereadouts are inserted into the title bar. .lpThe global \fImin_spec_height\fP gives the minimum height in pixels ofspectrogram windows; if there are more spectral values per record than\fImin_spec_height\fP, the initial window size is set at one pixel perspectral value up to a pre-defined maximum. .lpThe global \fImin_spec_width\fP gives minimum width in pixels ofspectrogram windows; regardless of window width, spectrograms arepainted as one record per pixel column..sh 2 "New Waves Commands".sh 3 "Add External ESPS (No Output) Call to \fIwaves\fP+ Menu (\fIadd_espsn\fP.lpThe new \fIadd_espsn\fP command is a companion to the existing\fIadd_espsf\fP and \fIadd_espst\fP commands; like them, it may be directed at \fIwaves\fP+. All three of the "add_esps" commandsadd an item to the \fIwaves\fP+ that can be used to invoke an externalESPS program on a marked signal segment. There are threecorresponding classes of ESPS programs that can be invoked from within\fIwaves\fP+: (1) programs that take two ESPS file arguments (inputfile and output file) and produce an ESPS output file (for example,\fIfilter\fP (1\-\s-1ESPS\s+1)); (2) programs that take a single ESPSinput file argument and produce ASCII text output on standardoutput (for example, \fIstats\fP (1\-\s-1ESPS\s+1)); and (3) programsthat produce no direct output (but may have side effects like printingor plotting), for example, \fIplotsgram\fP (1\-\s-1ESPS\s+1). Tosummarize the correspondence:.ip \fIadd_espsf\fP: adds call to program that produces an ESPS file.ip \fIadd_espst\fP: adds call to program that produces text.ip \fIadd_espsn\fP: adds call to program that produces no direct output.lpThe \fIadd_espsn\fP command takes two keywords, \fIname\fP and\fIcommand\fP. As with the other "add_esps" commands, \fIname\fP isthe menu label, and \fIcommand\fP is the corresponding externalcommand to be invoked on the marked segment (including any options or\fIrsh\fP prefixes). When \fIname\fP is invoked from the menu, asystem call is issued to run \fIcommand\fP in the background.(WARNING: you can't QUIT \fIwaves\fP+ until all such background jobshave terminated.) As with the other "add_esps" commands, the\fIremote_path\fP global is used as a prefix to the file name in orderto handle the case of remote executions on files accessible via NFS.Only one external ESPS program can be incorporated at a time with\fIadd_espsn\fP. Subsequent uses of \fIadd_espsn\fP just override thecurrent values. For details, see "RUNNING ESPS PROGRAMS FROM \fIwaves\fP+"in the \fIwaves\fP+ manual..lpHere are a couple of examples: In order to view spectrogram segmentswithout interpolation (i.e., so that each data point is displayed as auniform rectangle), one might use:.nf add_espsn name rect_sgram command plotsgram -D .fiOne could then mark a spectrogram segment and invoke the "rect_sgram" menu entry, the result being an separate ESPS plot of the markedsegment. Similarly, .nf add_espsn name print_sgram command plotsgram -Tpostscript.ficould be use to plot the marked segment on a local postscript printer,assuming one was set up in the ESPS installation script. One couldthe same thing for sampled data files by means of \fIplotsd\fP(1\-\s-1ESPS\s+1). .sh 3 "Change Working Directory (\fIcd\fP)".lpThe command \fIcd\fP, which may be directed to \fIwaves\fP+, changesthe current working directory. The optional keyword \fIpath\fP givesthe new directory. If issued without the keyword \fIpath\fP, theuser's home directory is assumed. All file names passed to\fIwaves\fP+ (e.g., in the INPUTfile item of the control panel) areinterpreted relative to the current working directory. On startup,the working directory is the directory in which \fIwaves\fP+ isinvoked..sh 3 "Page Signal in Window (\fIpage\fP)".lpThe command \fIpage\fP, which may be sent to display ensembles, provides a means for paging forward or backwards from command files(in previous versions, this function was available only as a menuitem). There are three optional keywords:.ip \ \ \fIfile\fP: 12The name of the signal to be paged forward or back. Ifomitted, the name from INPUTfile in the command window is used..ip \ \ \fIstep\fP: 12If positive, the number of seconds to page forward; ifnegative, the number of seconds to page backwards. If omitted, thevalue of the global \fIref_step\fP is used..ip \ \ \fIref_step\fP: 12Optional new value for the global \fIref_step\fP. .sh 3 "Play Signal in Window (\fIplay_wind\fP)".lpThe command \fIplay_wind\fP, which may be sent to display ensembles, provides a means for playing the data currently displayed in a window(in previous versions, this function was available only as a menuitem). The optional keyword \fIfile\fP names the signal to be played. If \fIfile\fP is not given, some heuristics are used to find a window toplay. .sh 3 "Save Signal Segment (\fIsave\fP)".lpThe command \fIsave\fP, which may be sent to display ensembles,provides a means for saving specific segments of signals (in previousversions, this function was available only as a menu item). There arethree optional keywords:.ip \ \ \fIfile\fP: 12The name of the signal file containing the segment to besaved. The name of the in which the segment is saved is determined bythe OUTPUTfile item in the \fIwaves\fP+ control panel (see descriptionin the \fIwaves\fP+ manual). Note that the base name for the outputfile can be changed by re-setting the global \fIoutputname\fP..ip \ \ \fIstart\fP: 12The start time of the segment to be saved. .ip \ \ \fIend\fP: 12The end time of the segment to be saved..sh 2 "Spectrogram Improvements"Spectrograms are now painted significantly faster than previouslywhen interpolation is unnecessary \- that is, when the vertical scale isone frequency point per pixel. (By default, spectrograms areautomatically initially painted at that scale unless they would be tootall to fit on the screen or below a minimum height that correspondsto 153 frequency points.).npThe spectrogram computations performed by the DSP board were cleanedup. A faulty assumption about the analysis window symmetry wascorrected, resulting in improved spectral dynamic range. Parameterrange checking was made more robust. Buffer overrun problems causingvertical stripes on spectrograms for certain parameter settings havebeen fixed. An initialization problem that caused a glitch near thebeginning of the spectrogram has been fixed..sh 2 "\fIwaves\fP+ as a Display Server".lp\fIwaves\fP+ can now optionally accept commands from stdin, andtherefore can use the UNIX pipe facility in the usual way or be run inthe background as a display server with invocations like:.sp .5.nf waves \- < /dev/ptyra &.fi.sp .5Any waves commands subsequently sent to /dev/ttyra will be receivedand executed by waves..sh 2 "Visual Cues for Colormap Dynamics".lpA special ESPS FEA_SPEC file (ESPS/lib/waves/color.fspec) is availableto provide visual cues about the current colormap. To use it, justload the file (enter its full path name as the "INPUTfile:" in thecontrol panel). This file has a series of identical records, witheach record containing all possible numerical values for spectra. Asviewed on the screen, the values range from -64 at the bottom of thewindow to +50 at the top; these are displayed with the first 115
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?