31 std::cerr <<
"MooreSpread: spread malloc 1: Out of memory"<<std::endl;
33 if (!(
memory=
new double[(1+bankCount)*bankCount]))
34 std::cerr <<
"MooreSpread: spread malloc 2: Out of memory"<<std::endl;
57 excite(
double **filterBankOutput,
int sampleCount,
int sampleFreq){
60 double factor=((double)sampleCount)/(double)sampleFreq;
69 spread[i][j]=filterBankOutput[j][binOfInterest];
double ** spread
The Moore/Glasberg spreading due to the filters.
void excite(double **filterBankOutput, int sampleCount, int sampleFreq)
double * centreFreqs
The centreFrequencies of each filter bank.
double * memory
Memory used in the operation.
~MooreSpread(void)
Destructor.
MooreSpread(int fBankCount)
Instantiation requiring the number of filter banks.
int bankCount
The number of sub-bankds in the filter bank.