gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
MooreSpread.H
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 #ifndef MOORESPREAD_H_
20 #define MOORESPREAD_H_
21 
22 #include <iostream>
23 //#include "../gammachirp/GCFB.H"
24 //#include <mffm/GTFB.H>
25 
34 class MooreSpread {
35 protected:
36  int bankCount;
37  double *memory;
38  double **spread;
39 public:
40  double *centreFreqs;
41  MooreSpread(int fBankCount);
42  ~MooreSpread(void);
43  void setCFreq(int which, double value){centreFreqs[which]=value;}
44 
49  void excite(double **filterBankOutput, int sampleCount, int sampleFreq);
50 };
51 #endif // MOORESPREAD_H_
double ** spread
The Moore/Glasberg spreading due to the filters.
Definition: MooreSpread.H:38
void excite(double **filterBankOutput, int sampleCount, int sampleFreq)
Definition: MooreSpread.C:57
double * centreFreqs
The centreFrequencies of each filter bank.
Definition: MooreSpread.H:40
void setCFreq(int which, double value)
Method for setting the centre freqs.
Definition: MooreSpread.H:43
double * memory
Memory used in the operation.
Definition: MooreSpread.H:37
~MooreSpread(void)
Destructor.
Definition: MooreSpread.C:44
MooreSpread(int fBankCount)
Instantiation requiring the number of filter banks.
Definition: MooreSpread.C:24
int bankCount
The number of sub-bankds in the filter bank.
Definition: MooreSpread.H:36
gtkIOStream: /tmp/gtkiostream/include/AudioMask/MooreSpread.H Source File
GTK+ IOStream  Beta