tomwalters@0
|
1 .TH CONVERT 1 "15 September 1993"
|
tomwalters@0
|
2
|
tomwalters@0
|
3 .SH NAME
|
tomwalters@0
|
4 convert \- Convert units: frequency, time, and sample numbers.
|
tomwalters@0
|
5
|
tomwalters@0
|
6 .SH SYNTAX
|
tomwalters@0
|
7 convert [options] arguments
|
tomwalters@0
|
8
|
tomwalters@0
|
9
|
tomwalters@0
|
10 .SH DESCRIPTION
|
tomwalters@0
|
11 Convert time to samples and vice verca. Options of the general form:
|
tomwalters@0
|
12
|
tomwalters@0
|
13 -to<units> | to=<units>
|
tomwalters@0
|
14
|
tomwalters@0
|
15 may be intersperced with arguments, which are treated as values to convert
|
tomwalters@0
|
16 into the units given by the previous option on the command line.
|
tomwalters@0
|
17 Time in seconds or milliseconds is converted to and from sample points using
|
tomwalters@0
|
18 the given samplerate. Time (in seconds, miliseconds or samples) is converted
|
tomwalters@0
|
19 to and from frequency by reciprocal.
|
tomwalters@0
|
20
|
tomwalters@0
|
21 .SH EXAMPLES
|
tomwalters@0
|
22
|
tomwalters@0
|
23 .nf
|
tomwalters@0
|
24 1. Convert 100 samples to time in ms, and the 10ms to a number of
|
tomwalters@0
|
25 samples, both at the default sample-rate of 20kHz. Then at a
|
tomwalters@0
|
26 sample-rate of 10kHz print the number of samples in 32ms.
|
tomwalters@0
|
27
|
tomwalters@0
|
28
|
tomwalters@0
|
29 convert to=ms 100p to=p 10ms samplerate=10kHz to=p 32ms
|
tomwalters@0
|
30 .fi
|
tomwalters@0
|
31
|
tomwalters@0
|
32 .nf
|
tomwalters@0
|
33 2. Convert 0.1 seconds to sample points.
|
tomwalters@0
|
34
|
tomwalters@0
|
35 convert -topoints 0.1sec
|
tomwalters@0
|
36 .fi
|
tomwalters@0
|
37
|
tomwalters@0
|
38 .SH COPYRIGHT
|
tomwalters@0
|
39 .LP
|
tomwalters@0
|
40 Copyright (c) Applied Psychology Unit, Medical Research Council, 1995
|
tomwalters@0
|
41 .LP
|
tomwalters@0
|
42 Permission to use, copy, modify, and distribute this software without fee
|
tomwalters@0
|
43 is hereby granted for research purposes, provided that this copyright
|
tomwalters@0
|
44 notice appears in all copies and in all supporting documentation, and that
|
tomwalters@0
|
45 the software is not redistributed for any fee (except for a nominal
|
tomwalters@0
|
46 shipping charge). Anyone wanting to incorporate all or part of this
|
tomwalters@0
|
47 software in a commercial product must obtain a license from the Medical
|
tomwalters@0
|
48 Research Council.
|
tomwalters@0
|
49 .LP
|
tomwalters@0
|
50 The MRC makes no representations about the suitability of this
|
tomwalters@0
|
51 software for any purpose. It is provided "as is" without express or
|
tomwalters@0
|
52 implied warranty.
|
tomwalters@0
|
53 .LP
|
tomwalters@0
|
54 THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
tomwalters@0
|
55 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
tomwalters@0
|
56 THE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES
|
tomwalters@0
|
57 OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
tomwalters@0
|
58 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
tomwalters@0
|
59 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
tomwalters@0
|
60 SOFTWARE.
|
tomwalters@0
|
61
|