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