gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
AudioMask.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 AUDIOMASK_H_
20 #define AUDIOMASK_H_
21 
22 #include "AudioMask/MooreSpread.H"
23 
29 class AudioMask : private MooreSpread {
30  double *excitation;
31  double *Lvmu;
32  double factor;
33 protected:
34  int fs;
35 public:
36  double *mask;
37  double max;
38 
44  AudioMask(int sampFreq, int fBankCount);
45  ~AudioMask(void);
46 
52  void setCFreq(int which, double value) {
53  MooreSpread::setCFreq(which, value);
54  }
60  void exciteTerhardt(double **filterBankOutput, int sampleCount);
61  void exciteBeerends(double **filterBankOutput, int sampleCount);
62 };
63 
64 #endif //AUDIOMASK_H_
void setCFreq(int which, double value)
Definition: AudioMask.H:52
int fs
Sample frequency.
Definition: AudioMask.H:34
double max
The maximum value of the mask.
Definition: AudioMask.H:37
void exciteTerhardt(double **filterBankOutput, int sampleCount)
Definition: AudioMask.C:59
double * excitation
The excitation of the roex filters.
Definition: AudioMask.H:30
void setCFreq(int which, double value)
Method for setting the centre freqs.
Definition: MooreSpread.H:43
double * mask
The audio mask.
Definition: AudioMask.H:36
double * Lvmu
Definition: AudioMask.H:31
void exciteBeerends(double **filterBankOutput, int sampleCount)
Definition: AudioMask.C:126
AudioMask(int sampFreq, int fBankCount)
Definition: AudioMask.C:35
~AudioMask(void)
Deconstructor.
Definition: AudioMask.C:47
double factor
Definition: AudioMask.H:32
gtkIOStream: /tmp/gtkiostream/include/AudioMask/AudioMask.H Source File
GTK+ IOStream  Beta