Pitch Perfector
A real-time pitch-shifting microphone project at the University of Glasgow
 All Classes Functions
vocoder.h
1 #include <fftw3.h>
2 
3 class vocoder {
4  public:
5  float baseFreq;
6  int baseSample;
7  int samplerate;
8  int bufferSize;
9  float FreqRes;
10  const float* scaleFreqs;
11  float newFreq;
12  float difference;
13  int binDifference;
14  fftw_complex* FourierTransform;
15  double* RealFourier;
16 
17  vocoder(int samplerate_input, int bufferSize_input, const float* scaleFreqs_input);
18  float binary_search(const float* NotesInKey, float* note, int highest_index, int lowest_index);
19  float noteFinder(const float* NotesInKey, float* note);
20  float SampleToFreq(int sample);
21  void pitchShift_setup(fftw_complex* fft_spectrum);
22  void pitchShift();
23 };
Performs the analysis and pitch sifting of input frequencies.
Definition: vocoder.h:3