11 float frequencyResolution;
12 const double* scaleFrequencies;
16 fftw_complex fourierSpectrum[257];
18 double closestNoteFrequency;
20 double* peakFrequencyPointer;
22 Vocoder(
int sampleRate,
int bufferSize,
const double* scaleFrequencies);
23 float binary_search(
const float* NotesInKey,
float* note,
int highest_index,
int lowest_index);
24 float noteFinder(
const float* NotesInKey,
float* note);
25 float SampleToFreq(
int sample);
26 void pitchShift_setup(fftw_complex* fft_spectrum);
29 double getClosest(
double val1,
double val2,
double target);
30 double findClosestNote(
const double notes[],
int n,
double target);
31 int FrequencyToIndex(
double frequency);
32 void setFourierSpectrum(fftw_complex* fftSpectrum);
33 const char* frequencyToNote(
double freq);