annotate man/man1/bufframe.1 @ 0:5242703e91d3 tip

Initial checkin for AIM92 aimR8.2 (last updated May 1997).
author tomwalters
date Fri, 20 May 2011 15:19:45 +0100
parents
children
rev   line source
tomwalters@0 1 .TH BUFFRAME 1 "1 September 1993"
tomwalters@0 2
tomwalters@0 3 .SH NAME
tomwalters@0 4 bufframe \- a shifting AIM output frame buffer.
tomwalters@0 5
tomwalters@0 6 .SH SYNTAX
tomwalters@0 7 bufframe [options] [file]
tomwalters@0 8
tomwalters@0 9 .SH DESCRIPTION
tomwalters@0 10
tomwalters@0 11 The program reads an AIM header and the output from the genbmm (basilar
tomwalters@0 12 membrane motion) or gennap (neural activity pattern) programs. This is
tomwalters@0 13 divided into contiguous time frames using the optional arguments and written
tomwalters@0 14 on the stdout with an
tomwalters@0 15 appropriate header as if output from the gensai program. This enables
tomwalters@0 16 genbmm or gennap output to be divided into time frames and replayed as a
tomwalters@0 17 time-varying cartoon by gensai using the "useprevious" option.
tomwalters@0 18
tomwalters@0 19 Certain display parameters have different default values for different
tomwalters@0 20 applications. The gensai display parameters should be set to the
tomwalters@0 21 appropriate values, in order to plot the cartoon on the same scale. For
tomwalters@0 22 example: when the source application is gennap, set gensai top=1000,
tomwalters@0 23 when the source application is genbmm, set gensai bottom=-100.
tomwalters@0 24
tomwalters@0 25
tomwalters@0 26 .SH OPTIONS
tomwalters@0 27
tomwalters@0 28 1. width, frstep.
tomwalters@0 29
tomwalters@0 30 The input is divided into frames according to the width option and the
tomwalters@0 31 frstep option. The width option sets the width of the output frames.
tomwalters@0 32 The frstep option sets the step or shift between successive output frames.
tomwalters@0 33 With no units, the values of width and frstep are in samples.
tomwalters@0 34 Both width and frstep may take time units (s or ms), in which case the values
tomwalters@0 35 are converted to samples using the given `samplerate' option.
tomwalters@0 36
tomwalters@0 37 2. frame.
tomwalters@0 38
tomwalters@0 39 A range of sequential frames may be selected for output by:
tomwalters@0 40
tomwalters@0 41 .nf
tomwalters@0 42 frame=a[-b]
tomwalters@0 43 .fi
tomwalters@0 44
tomwalters@0 45 The upper limit `b' is optional, and when it is missing then the range
tomwalters@0 46 is a single frame, otherwise `a' and `b' are inclusive range limits.
tomwalters@0 47 The strings "min" and "max" are recognised as extreme limits constrained
tomwalters@0 48 by the given width and frstep and the input size,
tomwalters@0 49 otherwise the values of `a' and `b' are frame numbers: 0,1,2,...
tomwalters@0 50
tomwalters@0 51 The frame selector may also take time units (s, or ms) to specify frames
tomwalters@0 52 "closest" to the given time, being the frame number which is the
tomwalters@0 53 greatest integer multiple of the framestep (frstep) which does not
tomwalters@0 54 exceed the given time measured from the
tomwalters@0 55 start of the input file.
tomwalters@0 56
tomwalters@0 57 3. Transpose.
tomwalters@0 58
tomwalters@0 59 The option flag:
tomwalters@0 60
tomwalters@0 61 .nf
tomwalters@0 62 Transpose=on
tomwalters@0 63 .fi
tomwalters@0 64
tomwalters@0 65 causes a matrix transpose (swap rows and columns) of each output frame.
tomwalters@0 66 When a frame has a height greater
tomwalters@0 67 than it's width then setting "Transpose=on" may provide
tomwalters@0 68 a preferable display orientation. For example, this enables a very narrow
tomwalters@0 69 (eg. single column) time-slice to be plotted horizontally, so that a
tomwalters@0 70 time-slice of filterbank output may be plotted as a spectrum on a horizontal
tomwalters@0 71 frequency axis.
tomwalters@0 72
tomwalters@0 73 4. Header.
tomwalters@0 74
tomwalters@0 75 The option flag:
tomwalters@0 76
tomwalters@0 77 .nf
tomwalters@0 78 Header=off
tomwalters@0 79 .fi
tomwalters@0 80
tomwalters@0 81 causes the header to be suppressed from the output.
tomwalters@0 82
tomwalters@0 83 5. display, animate.
tomwalters@0 84
tomwalters@0 85 Most options in the input header are copied to the output header. This
tomwalters@0 86 enables options which are needed for the eventual display to pass
tomwalters@0 87 straight through. Some options are set so that they can override the
tomwalters@0 88 input header. For example, the `display' option is set on to enable
tomwalters@0 89 display even when input has "display=off". The `animate' option can be set
tomwalters@0 90 on even when the input has "animate=off".
tomwalters@0 91
tomwalters@0 92
tomwalters@0 93 .SH EXAMPLES
tomwalters@0 94
tomwalters@0 95 1. To convert gennap output to multiple animated frames:
tomwalters@0 96
tomwalters@0 97 .nf
tomwalters@0 98 gennap len=16ms display=off output=stdout file1 |
tomwalters@0 99 bufframe width=8ms frstep=0.2ms anim=on > file2.sai
tomwalters@0 100 gensai useprev=on top=1000 file2 -(for landscape plot)
tomwalters@0 101 genspl useprev=on top=1000 pensize=2 file2 -(for spiral plot)
tomwalters@0 102 .fi
tomwalters@0 103
tomwalters@0 104
tomwalters@0 105 2. To view the basilar membrane from a cross section, animating the waves on it.
tomwalters@0 106
tomwalters@0 107 .nf
tomwalters@0 108 genbmm mincf=220 maxcf=660 len=8ms output=stdout display=off file1 |
tomwalters@0 109 bufframe width=1p frstep=1p Tran=on display=on anim=on > file2.sai
tomwalters@0 110 gensai bott=-100 useprev=on mag=.2 file2
tomwalters@0 111
tomwalters@0 112 or:
tomwalters@0 113
tomwalters@0 114 genbmm mincf=220 maxcf=660 len=32ms output=stdout display=off file1 |
tomwalters@0 115 bufframe width=1p frstep=1p Tran=on Header=off > file2
tomwalters@0 116 x11play -n75 -a500 file2
tomwalters@0 117 .fi
tomwalters@0 118
tomwalters@0 119
tomwalters@0 120 .SH "SEE ALSO"
tomwalters@0 121 options edframe
tomwalters@0 122
tomwalters@0 123 .SH COPYRIGHT
tomwalters@0 124 .LP
tomwalters@0 125 Copyright (c) Applied Psychology Unit, Medical Research Council, 1995
tomwalters@0 126 .LP
tomwalters@0 127 Permission to use, copy, modify, and distribute this software without fee
tomwalters@0 128 is hereby granted for research purposes, provided that this copyright
tomwalters@0 129 notice appears in all copies and in all supporting documentation, and that
tomwalters@0 130 the software is not redistributed for any fee (except for a nominal
tomwalters@0 131 shipping charge). Anyone wanting to incorporate all or part of this
tomwalters@0 132 software in a commercial product must obtain a license from the Medical
tomwalters@0 133 Research Council.
tomwalters@0 134 .LP
tomwalters@0 135 The MRC makes no representations about the suitability of this
tomwalters@0 136 software for any purpose. It is provided "as is" without express or
tomwalters@0 137 implied warranty.
tomwalters@0 138 .LP
tomwalters@0 139 THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
tomwalters@0 140 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
tomwalters@0 141 THE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES
tomwalters@0 142 OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
tomwalters@0 143 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
tomwalters@0 144 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
tomwalters@0 145 SOFTWARE.
tomwalters@0 146