1 
2 /*
3  *  Diverse Bristol audio routines.
4  *  Copyright (c) by Nick Copeland <nickycopeland@hotmail.com> 1996,2012
5  *
6  *
7  *   This program is free software; you can redistribute it and/or modify
8  *   it under the terms of the GNU General Public License as published by
9  *   the Free Software Foundation; either version 3 of the License, or
10  *   (at your option) any later version.
11  *
12  *   This program is distributed in the hope that it will be useful,
13  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *   GNU General Public License for more details.
16  *
17  *   You should have received a copy of the GNU General Public License
18  *   along with this program; if not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef FILTER_H
23 #define FILTER_H
24 
25 #define VCF_FREQ_MAX  (0.825f)
26 
27 typedef struct BristolFILTER {
28 	bristolOPSpec spec;
29 } bristolFILTER;
30 
31 typedef struct BristolFILTERlocal {
32 	unsigned int flags;
33 	float Bout;
34 	float oSource;
35 	float output;
36 	float velocity;
37 	float history[1024];
38 	float cutoff;
39 	float a[8];
40 	float adash[8];
41 	float spc;
42 
43 	float delay1, delay2, delay3, delay4, delay5;
44 
45 	float out1, out2, out3, out4;
46 
47 	float az1;
48 	float az2;
49 	float az3;
50 	float az4;
51 	float az5;
52 	float ay1;
53 	float ay2;
54 	float ay3;
55 	float ay4;
56 	float amf;
57 } bristolFILTERlocal;
58 
59 #endif /* FILTER_H */
60 
61