📄 xwaves.1
字号:
.I xwavescommand.The.B Colormap...button, mentioned above under \*(lqThe miscellaneous controls panel\*(rq,works by setting the variable to the name of one of several predefinedcolormap files.See \*(lqColormaps\*(rq in \*(wD to find outhow to create your own colormap files. .SS Data window menu items.PPUsing.I xwavescommands, you can customize the contents of the menus that pop upwhen you press the right mouse button in the data region of an.I xwavesdisplay window.You can do this separately for the waveform and spectrogram menus.There are commands for deleting and restoring menu items.With the.I add_opcommand, you can define new menu itemsthat invoke arbitrary UNIX shell commands or.I xwavescommands.For full information, see \*(lqData window menu items\*(rq in \*(wDand the commands.I delete_item,.I delete_all_items,.I add_op,.I add_waves,and.I opunder.qI xwaves "command reference"in \*(wR.In addition there are a number of \*(lqbuilt-in\*(rq menu operationsthat are present by default unless explicitly removed.See \*(lqData window menu items\*(rq in \*(wD for more informationon the individual items..PP.BR "play between marks" ,.BR "play window contents" ,.BR "play entire file" ,and.B "play to end of file"let you listen to various portions of a signalby sending them to a D/A converter..BR "page ahead" ,.BR "page back" ,.BR "window ahead" ,and.B "window back"move the view in the display windowforward or backward through the file..B "align and rescale"rescales and repositions windows so that all other windows in anobject align vertically with the selected window..BR "bracket markers" ,.BR "zoom in" ,.BR "zoom out" ,and.B "zoom full out"expand or contract the time scale of the window,as suggested by the names..B "spectrogram (W.B.)"and.B "spectrogram (N.B.)"create spectrograms of the portion of a signal delimited by the markers..B "save segment in file"writes an output file containing the segment of the signaldelimited by the markers..B "delete segment"and.B "insert file"let you edit a signal by cutting and pasting..B "Button Modes"lets you determine which functions are invokedby the left and middle mouse buttons..B "kill window"removes the display window.(This is needed on systems where a window cannot be removedby using the window-manager frame menu.).B "print graphic"and.B "print ensemble"output one or more display windows for printing..SS Printing graphics.PPThere are two built-in .I xwavesmenu operations for producing printable output:.B print graphicand.BR "print ensemble" .(There are also ordinary.I xwavescommands that perform the same functions.).B "print graphic"renders a single display window in either Encapsulated PostScriptor PCL (HP Laserjet code)..B "print ensemble"renders all display windows in an object in Encapsulated PostScript(only).The relative positions of the windows on the screen are preservedin the printed output.Some attachments (see \*(lqAttachments\*(rq below) can cooperate with.I xwavesto let.B "print ensemble"include windows created by the attachment in the output along withthose created by.I xwavesitself..PPThere are several.I xwavesglobal variables that control various aspects of the printing,such as whether the output goes to a file or directly to a printer.See \*(lqPrinting graphics\*(rq in \*(wDfor a list of the variables with explanations.The.B Print setup...button, mentioned under \*(lqThe miscellaneous controls panel\*(rq above,lets you set these variables..SS The command language.PPThe.I xwavescommand language provides control overessentially the entire domain of actions available to.I xwavesand its attachments.The commands of this language subsume all the functionsavailable through the mouse-oriented interface,and they provide a means for extending the command setand enhancing the interface..I xwaveslets you assign values to symbols (variables) with the.I setcommand.It also has a large set of built-in symbolsthat affect its behavior in various ways (e.g. the colormap filename)or reflect various aspects of its state (e.g. the cursor position).These variables can be incorporated in commands you add yourself.For a full description of the syntax and use of.I xwavescommands, see \*(lqThe.I waves+command language\*(rq in \*(wD.For descriptions of the individual symbols and commands,see.qI xwaves "symbols reference"and.qI xwaves "command reference"in \*(wR..PP.I xwavesdistinguishes between.I "object commands,"which are directed to a particular object (display ensemble), and.I "global commands,"which are simply directed to.I xwavesitself.The syntax of simple.I xwavescommands is.LP.RS.nf.if t .ft Iobject command keyword value keyword value ....if t .ft P.fi.RE.LPwhere.I objectis the name of the object to which the command is directed, and.I commandis the name of the command to be executed.There may be any number of keyword\-value pairs, including zero.For a global command,.I objectis \*(lqwaves\*(rq or is simply omitted..PPFor example, the simplest form of the commandthat creates a waveform display might look like.LP.RS.nf.if t .ft Iwaves make file speech.sd.if t .ft P.fi.RE.LPor simply.LP.RS.nf.if t .ft Imake file speech.sd.if t .ft P.fi.RE.LPsince.I makeis a global command.The keyword.I fileindicates that the following argument,.I speech.sd,is the name of the data file to be read and displayed.The command.I makehas many other optional keywords that permit control of various windowattributes, such as size, etc.The documentation for each command in \*(wRlists the keywords recognized by the commandand explains the meaning of each..PPFor the command.I set,any variable name can be used as a keyword, and the following valueis assigned to the variable.For example.LP.RS.nf.if t .ft Iset colormap my_colormap.if t .ft P.fi.RE.LPassigns the value.I my_colormapto the variable.I colormap..PPThe command.I add_oplets you define new operations.For example.LP.RS.nf.if t .ft Iadd_op name my_op op "doit.sh _l_marker_time _r_marker_time".if t .ft P.fi.RE.LPdefines a new operation.I my_opthat runs a shell script.I doit.sh.The keyword.I nameidentifies the following argument, \*(lqmy_op\*(rq,as the name of the operation;new items containing the name \*(lqmy_op\*(rqare added to the display window menusand will invoke the new operation when selected.The keyword.I opindicates that the following string\*(lqdoit.sh _l_marker_time _r_marker_time\*(rqis the definition of the new operation.In the definition,.I l_marker_timeand.I r_marker_timeare examples of variableswhose values are to be substituted in the string.They are identified as such by the underscores (\*(lq_\*(rq)that precede them..I l_marker_timeand.I r_marker_timeare built-in.I xwavessymbols that contain the times (in seconds)corresponding to the left and right marker positions(see.qI xwaves "symbols reference"in \*(wR).Thus, whenever the new operation is invoked,the values of the variables at that timeare substituted in the definition string.Suppose the values are 0.25 and 0.35.Then.LP.RS.nf.if t .ft Idoit.sh 0.250000 0.350000.if t .ft P.fi.RE.LPis executed as a shell command, running the script.I doit.shwith arguments that give the marker times..PPThere are several ways to convey commands to.I xwaves..TP(1) The main control panel.Just type the command in the field.BR "COMMAND (or @file):" ..TP(2) Command files.You can store a number of commands in a file,and they can then be executed from.I xwaves.You can enter the file preceded by \*(lq@\*(rq in the field.B "COMMAND (or @file):"or, if the first line starts with the word \*(lqwaves\*(rq,enter it on the command line when starting.I xwaves.A command file that is always executed when.I xwavesis started is the file indicated by the.I init_fileentry in the.I .wave_profile.See.qI xwaves "initialization"below..TP(3) The program \fIsend_xwaves\fP..IR send_xwaves (1\-ESPS)is a program that takes an.I xwavescommand string as a parameter and sends the command to.I xwaves.The program can easily be used to control.I xwavesfrom a UNIX shell script..TP(4) C library functions.If you have the ESPS function library,you can write application programs in C,using the functions.IR SendXwavesNoReply (3\-ESPS)and.IR SendXwavesReply (3\-ESPS)to send commands to.I xwaves..TP(5) Auxiliary panels.The command.I make_panellets you build X window panels from which you can issue commandsby pushing buttons or selecting from menus.See the command description under.qI xwaves "command reference"in \*(wR..TP(6) Display window menus.As described above, you can associate.I xwavescommands with display-window menu items by using the command.I add_op..TP(7) Keyboard bindings.With the command.I key_mapyou can bind an operation to a character on the keyboardto be executed when the key is pressed.See the command description under.qI xwaves "command reference"in \*(wR..PPThere is much more to be said about using.I add_opand about.I xwavescommands in general.See \*(lqThe.I waves+command language\*(rq in \*(wD..SS xwaves initialization.PPInitial values for.I xwavesglobal variables and other symbols can be assigned in a profile filethat is read when.I xwavesstarts.By default this is a file named.I .wave_profound in the user's home directory or, if not there, in the directory.I $ESPS_BASE/lib/waves.(However, see.B \-wunder OPTIONS below.)See the.I .wave_proin the latter directory for a fully commented example of a complete.I xwavesprofile.The file contains lines of the form.LP.RS.nf.if t .ft Iname value.if t .ft P.fi.RE.LPwhere.I valueis a value to be assigned to the symbol.I name.For example, you could specify a non-default colormap at startupby including a line:.LP.RS.nf.if t .ft Icolormap MyColormap.if t .ft P.fi.RE.LPThe variables that have special meaning for.I xwavesare listed with explanations under.qI xwaves "symbols reference"in \*(wR.Some variables have meaning to.I xwavesattachments (see \*(lqAttachments\*(rq below)which get the values by communicating with.I xwaves.You can assign values to other variablesfor any convenient purpose\*-e.g. for use in.I add_opcommands..PPOne important global variable is.I init_file.This is the name of an.I xwavescommand file that is executed after the.I .wave_prohas been read; it allows more elaborate startup processingthan is possible through simple assignments of values to variables.See.I $ESPS_BASE/lib/waves/commands/xw_init.WCfor a default.I init_file.It is through the.I init_filethat the contents of the.B "Miscellaneous xwaves Controls"panel is created.By specifying a different (modified).I init_filein the.I .wave_pro,you can customize the panel contents,change the contents of the display-window menus,and otherwise modify the initial configuration of.I xwaves.See.qI "xwaves\fR's\fI" "initial state: the .wave_pro file"and \*(lqChanging the menu files\*(rqunder \*(lqChanging the.I xwavesenvironment\*(rq in \*(wD for details and an example..SS UNIX environment variables.PPThere are numerous UNIX environment variablesthat affect the operation of ESPS programs and.I xwaves.For a list see.IR espsenv (1\-ESPS).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -