Pitch Perfector
A real-time pitch-shifting microphone project at the University of Glasgow
 All Classes Functions
fft.h
1 
12 #include <RtAudio.h>
13 #include <fftw3.h>
14 
15 #pragma once
16 
17 class fft {
18  public:
19  int nBufferFrames;
20  double* in;
21  fftw_complex *out;
22  fftw_complex* inverse_in;
23  double* inverse_out;
24  fftw_plan my_plan;
25  fftw_plan inverse_plan;
26 
28  fft(int nBufferFrames);
29 
33  void executefft(double* inputBuffer);
34 
39  void executeInverse_fft(fftw_complex* fourierSpectrum);
40 };
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