Pitch Perfector
A real-time pitch-shifting microphone project at the University of Glasgow
 All Classes Functions
fft.h
1 #include <RtAudio.h>
2 #include <fftw3.h>
3 
4 class fft {
5  public:
6  int nBufferFrames;
7  double* in;
8  fftw_complex *out;
9  fftw_complex* inverse_in;
10  double* inverse_out;
11  fftw_plan my_plan;
12  fftw_plan inverse_plan;
13 
14  fft(int nBufferFrames);
15  void executefft(double* inputBuffer);
16  void executeInverse_fft(fftw_complex* fourierSpectrum);
17 };
18 
19 // class Dispatch {
20 // public:
21 // static int caller(void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames, double streamTime, RtAudioStreamStatus status, void *data);
22 // };
fft(int nBufferFrames)
Construct the fftw3 plans for the object.
Definition: fft.cpp:6
Class for performing fourier transforms using FFTW3.
Definition: fft.h:17
void executeInverse_fft(fftw_complex *fourierSpectrum)
Definition: fft.cpp:23
void executefft(double *inputBuffer)
Definition: fft.cpp:18