synthesistransform.h 566 Bytes
Newer Older
Mert Burkay Çöteli's avatar
Mert Burkay Çöteli committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23


#pragma once

#define PI 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117068

#include <complex>
#include "fftw3.h"

using namespace std;
class synthesistransform
{

public:
    synthesistransform();
    synthesistransform(int windowsize, int signallength, int hopsize, int nofmics);
    void* IFFT(double* signal, double* realpart, double* imagpart);
private:
    void hamming(int windowLength, double* buffer);
    int signallength;
    int windowsize;
    int overlap;
    int nofmics;
24
    double* window;
Mert Burkay Çöteli's avatar
Mert Burkay Çöteli committed
25
26
27


};