gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
depukfbExample.cc
Go to the documentation of this file.
1 /*
2  libaudiomask - hybrid simultaneous audio masking threshold evaluation library
3  Copyright (C) 2000-2018 Dr Matthew Raphael Flax
4 
5  This program is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 #define FASTDEPUKFB
20 
21 #ifdef FASTDEPUKFB
22 #include "fastDepukfb.H"
23 #else
24 #include "depukfb.H"
25 #endif
26 
27 #include <fstream>
28 
29 #define FS 8192
30 
31 void main(void){
32  int binCount=4096;
33 #ifdef FASTDEPUKFB
34  FastDepUKFB depUKFB(FS, 20);
35 #else
36  DepUKFB depUKFB(FS);
37 #endif
38  ofstream output("w");
39  for (int i=0;i<depUKFB.filterCount();i++){
40  for (int j=0;j<binCount;j++)
41  output<<depUKFB(i,j,binCount)<<'\t';
42  output<<endl;
43  }
44  output.close();
45 }
#define FS
void main(void)
int filterCount(void)
Returns the number of filters.
Definition: depukfb.H:222
gtkIOStream: /tmp/gtkiostream/src/AudioMask/depukfbExample.cc Source File
GTK+ IOStream  Beta