Pitch Perfector
A real-time pitch-shifting microphone project at the University of Glasgow
|
This class handles the callback functionality from RtAudio. More...
#include <dispatch.h>
Public Member Functions | |
dispatch (fft *fourierPtr, vocoder *vocoderPtr) | |
Collect pointers to objects to use in processing. | |
dispatch (fft *fourierPtr, Vocoder *vocoderPtr) | |
Static Public Member Functions | |
static int | caller (void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames, double streamTime, RtAudioStreamStatus status, void *data) |
Callback function for RtAudio. | |
static int | caller (void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames, double streamTime, RtAudioStreamStatus status, void *data) |
Public Attributes | |
fft * | fourierObj |
vocoder * | vocoderObj |
Vocoder * | vocoderObj |
double | fftAudioIn [512] |
fftw_complex * | fftSpectrum |
double * | fftInverseOut |
std::string | currentNote |
This class handles the callback functionality from RtAudio.
Dispatch objects are used to collect the processing objects used (<fft.h> and <vocoder.h>) and utilise them to process the audio data from RtAudio by implementing a method compatable with the RtAudio callback format.