1 // Copyright (c) <2012> <Leif Asbrink>
2 //
3 // Permission is hereby granted, free of charge, to any person
4 // obtaining a copy of this software and associated documentation
5 // files (the "Software"), to deal in the Software without restriction,
6 // including without limitation the rights to use, copy, modify,
7 // merge, publish, distribute, sublicense, and/or sell copies of
8 // the Software, and to permit persons to whom the Software is
9 // furnished to do so, subject to the following conditions:
10 //
11 // The above copyright notice and this permission notice shall be
12 // included in all copies or substantial portions of the Software.
13 //
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
16 // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19 // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
21 // OR OTHER DEALINGS IN THE SOFTWARE.
22 
23 
24 #include "globdef.h"
25 #include "fft3def.h"
26 
27 double fft3_show_time;
28 int yieldflag_ndsp_fft3;
29 int yieldflag_ndsp_mix2;
30 MEMREF_T *fft3_handle;
31 float *fft3;
32 COSIN_TABLE *fft3_tab;
33 unsigned short int *fft3_permute;
34 float *fft3_window;
35 float *fft3_tmp;
36 float *fft3_power;
37 float *fft3_fqwin_inv;
38 float *fft3_slowsum;
39 float *bg_filterfunc;
40 float *bg_carrfilter;
41 short int *fft3_spectrum;
42 short int *bg_filterfunc_y;
43 short int *bg_carrfilter_y;
44 float *timf3_float;
45 int *timf3_int;
46 short int *timf3_graph;
47 int fft3_n;
48 int fft3_size;
49 int fft3_block;
50 int fft3_totsiz;
51 int fft3_mask;
52 float fft3_blocktime;
53 int fft3_pa;
54 int fft3_px;
55 int fft3_show_size;
56 int fft3_slowsum_recalc;
57 int fft3_slowsum_cnt;
58 int bg_show_pa;
59 
60 float fft3_interleave_ratio;
61 int fft3_interleave_points;
62 int fft3_new_points;
63 float *basebraw_fir;
64 int basebraw_fir_pts;
65 float *basebwbraw_fir;
66 int basebwbraw_fir_pts;
67 float *basebcarr_fir;
68 int basebcarr_fir_pts;
69 
70 
71 int timf3_size;
72 int timf3_mask;
73 int timf3_y0[8];
74 float timf3_wttim;
75 float fft3_wttim;
76 float timf3_sampling_speed;
77 int timf3_osc_interval;
78 int timf3_block;
79 int timf3_pa;
80 int timf3_px;
81 int timf3_py;
82 int timf3_ps;
83 int timf3_wts;
84 float fft3_wtb;
85 
86