Pitch Perfector
A real-time pitch-shifting microphone project at the University of Glasgow
 All Classes Functions
dispatch.h
1 #include "fft.h"
2 #include "vocoder.h"
3 #include <RtAudio.h>
4 #include <cstdlib>
5 #include <cstring>
6 
7 class dispatch {
8  public:
9  fft* fourierObj;
10  Vocoder* vocoderObj;
11  double fftAudioIn[512];
12  fftw_complex* fftSpectrum;
13  double* fftInverseOut;
14  std::string currentNote;
15 
16  dispatch(fft* fourierPtr, Vocoder* vocoderPtr);
17  static int caller(void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames, double streamTime, RtAudioStreamStatus status, void *data);
18 };
This class handles the callback functionality from RtAudio.
Definition: dispatch.h:17
Definition: vocoder.h:5
dispatch(fft *fourierPtr, vocoder *vocoderPtr)
Collect pointers to objects to use in processing.
Definition: dispatch.cpp:9
Class for performing fourier transforms using FFTW3.
Definition: fft.h:17
static int caller(void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames, double streamTime, RtAudioStreamStatus status, void *data)
Callback function for RtAudio.
Definition: dispatch.cpp:14