AudioFFT using FFTReal. The only specific functionality is the access to the dataArray.
More...
|
virtual void | addNotifyAudioChange (AudioInfoSupport &bi) |
| Adds target to be notified about audio changes.
|
|
virtual AudioInfo | audioInfo () override |
| provides the actual input AudioInfo
|
|
virtual AudioInfo | audioInfoOut () |
|
int | available () override |
| Data available for reverse fft.
|
|
int | availableForWrite () override |
| We try to fill the buffer at once.
|
|
bool | begin () override |
| starts the processing
|
|
bool | begin (AudioFFTConfig info) |
| starts the processing
|
|
void | clearBins () |
| clears the fft data
|
|
virtual void | clearNotifyAudioChange () |
| Deletes all change notify subscriptions.
|
|
AudioFFTConfig & | config () |
| Provides the actual configuration.
|
|
float * | dataArray () |
| Provides the complex array returned by the FFT
|
|
AudioFFTConfig | defaultConfig (RxTxMode mode=TX_MODE) |
| Provides the default configuration.
|
|
FFTDriver * | driver () |
|
FFTDriverEspressifFFT * | driverEx () |
|
void | end () override |
| Release the allocated memory.
|
|
virtual void | flush () override |
|
float | frequency (int bin) |
| Determines the frequency of the indicated bin.
|
|
int | frequencyToBin (int freq) |
| Determine the bin number from the frequency.
|
|
bool | fromMEL (float *values, int n_bins, float min_freq=0.0f, float max_freq=0.0f) |
| Convert MEL spectrum back to linear frequency spectrum.
|
|
bool | getBin (int pos, FFTBin &bin) |
| gets the value of a bin
|
|
bool | isNotifyActive () |
| Checks if the automatic AudioInfo update is active.
|
|
int | length () |
| The number of samples.
|
|
float | magnitude (int bin) |
|
float | magnitudeFast (int bin) |
|
float * | magnitudes () |
|
float * | magnitudesFast () |
|
| operator bool () override |
|
float | phase (int bin) |
| calculates the phase
|
|
size_t | readBytes (uint8_t *data, size_t len) override |
| Provides the result of a reverse FFT.
|
|
virtual size_t | readSilence (uint8_t *buffer, size_t length) |
| Source to generate silence: just sets the buffer to 0.
|
|
virtual bool | removeNotifyAudioChange (AudioInfoSupport &bi) |
| Removes a target in order not to be notified about audio changes.
|
|
void | reset () |
| Just resets the current_pos e.g. to start a new cycle.
|
|
AudioFFTResult | result () |
| Determines the result values in the max magnitude bin.
|
|
template<int N> |
void | resultArray (AudioFFTResult(&result)[N]) |
| Determines the N biggest result values.
|
|
unsigned long | resultTime () |
|
unsigned long | resultTimeBegin () |
| time before the fft
|
|
void | setAudioInfo (AudioInfo info) override |
| Notify change of audio information.
|
|
bool | setBin (int idx, float real, float img) |
| sets the value of a bin
|
|
bool | setBin (int pos, FFTBin &bin) |
| sets the value of a bin
|
|
void | setNotifyActive (bool flag) |
| Deactivate/Reactivate automatic AudioInfo updates: (default is active)
|
|
void | setWriteBufferSize (int size) |
|
int | size () |
| The number of bins used by the FFT which are relevant for the result.
|
|
float * | toMEL (int n_bins, float min_freq=0.0f, float max_freq=0.0f) |
| Convert the FFT result to MEL spectrum.
|
|
size_t | write (const uint8_t *data, size_t len) override |
| Provide the audio data as FFT input.
|
|
virtual size_t | write (uint8_t ch) override |
|
virtual void | writeSilence (size_t len) |
| Writes len bytes of silence (=0).
|
|
|
int | bytesPerSample () |
|
template<typename T > |
void | fft () |
|
template<int N> |
void | insertSorted (AudioFFTResult(&result)[N], AudioFFTResult tmp) |
| make sure that we do not reuse already found results
|
|
bool | isPowerOfTwo (uint16_t x) |
|
virtual int | not_supported (int out, const char *msg="") |
|
void | notifyAudioChange (AudioInfo info) |
|
template<typename T > |
void | processSamples (const void *data, size_t count) |
|
void | refillReadBuffer () |
|
void | rfft () |
| reverse fft
|
|
void | rfftWriteData (BaseBuffer< uint8_t > &data) |
| write reverse fft result to buffer to make it available for readBytes
|
|
template<typename T > |
T | windowedSample (T sample, int pos) |
|
template<typename T > |
void | writeIFFT (float *data, int len) |
|
bool | writeStrideBuffer (uint8_t *buffer, size_t len) |
|
AudioFFT using FFTReal. The only specific functionality is the access to the dataArray.
- Author
- Phil Schatzmann
- Copyright
- GPLv3