synthesistransform.h 674 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


#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);
18
19
    void* IFFT(double* istft_out, float* realpart, float* imagpart);
    void SetSourceSize(int nofsource);
Mert Burkay Çöteli's avatar
Mert Burkay Çöteli committed
20
21
22
23
24
25
private:
    void hamming(int windowLength, double* buffer);
    int signallength;
    int windowsize;
    int overlap;
    int nofmics;
26
    double* window;
Mert Burkay Çöteli's avatar
Mert Burkay Çöteli committed
27
28
29


};