Mercurial > hg > aim92
comparison man/man1/fft.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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:5242703e91d3 |
---|---|
1 .TH FFT 1 "15 September 1993" | |
2 | |
3 .SH NAME | |
4 fft \- Fast Fourier transform of contiguous frames. | |
5 | |
6 | |
7 .SH SYNTAX | |
8 fft [arguments] [file] | |
9 | |
10 | |
11 .SH DESCRIPTION | |
12 Several forms of fft processing are provided, according to the "spectrum" | |
13 option. Unless verbose output is requested, all input and output is in | |
14 binary shorts. | |
15 | |
16 Each input frame is padded with zeroes to the next power of 2 larger than | |
17 the input framewidth. | |
18 If necessary, extra padding can be enforced using the (silent) padding option | |
19 to add extra zeroes, padding to a larger power of 2. | |
20 The amount of extra padding is "exponential", expanding the basic size to: | |
21 | |
22 ( framewidth + padding ) * 2**n | |
23 | |
24 where the padding option is n. | |
25 | |
26 (n=0 by default, so that no extra padding is added. When n=1 then padding is | |
27 added to double the size, and when n=2 the size is quadrupled, etc.). | |
28 The input and output frame sizes in sample points may be printed using the | |
29 "size" option. | |
30 | |
31 | |
32 .SH OPTIONS | |
33 | |
34 The spectrum option selects a form of processing from the list: | |
35 | |
36 1. magnitude: magnitude spectrum | |
37 | |
38 2. log: log10 of magnitude spectrum | |
39 | |
40 3. phase: phase spectrum. | |
41 | |
42 4. complex: full complex spectrum, in <real,imag> pairs. | |
43 | |
44 5. inverse: inverse fft, reading framewidth numbers which are interpreted as | |
45 <real,imag> pairs, (ie framewidth/2 complex numbers), | |
46 and outputs the inverse transform scaled by 1/framewidth. | |
47 | |
48 6. verbose: prints the spectrum in ASCII on the stdout. | |
49 | |
50 .SH EXAMPLES | |
51 .nf | |
52 1. To print the input and output frame sizes in sample points, | |
53 eg for a subsequent plotting program, use the size option: | |
54 | |
55 fft ... size=on | |
56 | |
57 | |
58 2. An fft of a waveform sampled at 10kHz, computed within a | |
59 frame of 12.8ms, plotting the 2nd frame in a sequence of | |
60 frames with half-frame overlap. | |
61 | |
62 fft samp=10kHz width=12.8ms frstep=6.4ms frame=2 file | x11plot | |
63 | |
64 | |
65 3. An animated plot of successive fft spectra of a waveform | |
66 sampled at 10kHz, each computed within a frame of 12.8ms, | |
67 and shifted by 2 sample points. | |
68 | |
69 fft samp=10kHz width=12.8ms frstep=2p file | x11play -n64 | |
70 | |
71 | |
72 4. Using the complex output from fft, and inverse transform | |
73 without windowing to recover original input. | |
74 | |
75 fft samp=10kHz frame=2 spec=complex window=off file > foo | |
76 fft samp=10kHz frame=1 spec=inverse window=off foo | x11plot | |
77 | |
78 .fi | |
79 | |
80 .SH COPYRIGHT | |
81 .LP | |
82 Copyright (c) Applied Psychology Unit, Medical Research Council, 1995 | |
83 .LP | |
84 Permission to use, copy, modify, and distribute this software without fee | |
85 is hereby granted for research purposes, provided that this copyright | |
86 notice appears in all copies and in all supporting documentation, and that | |
87 the software is not redistributed for any fee (except for a nominal | |
88 shipping charge). Anyone wanting to incorporate all or part of this | |
89 software in a commercial product must obtain a license from the Medical | |
90 Research Council. | |
91 .LP | |
92 The MRC makes no representations about the suitability of this | |
93 software for any purpose. It is provided "as is" without express or | |
94 implied warranty. | |
95 .LP | |
96 THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | |
97 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | |
98 THE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES | |
99 OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | |
100 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | |
101 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | |
102 SOFTWARE. | |
103 |