#include <AudioPreprocessing.h>
Public Member Functions | |
AudioPreprocessing (void) | |
~AudioPreprocessing (void) | |
AudioPreprocessing (AudioPreprocessing &source) | |
AudioPreprocessing (double interleaving, int factor, int noWindows, int noData) | |
void | save (fstream &fs) const |
bool | load (fstream &fs) |
void | createData (AUFile *auData) |
const vector< double > & | getWindows (void) const |
const vector< double > & | getFFTEnergies (void) const |
void | setInterleaving (double interleaving) |
double | getInterleaving (void) const |
void | setFactor (int factor) |
double | getFactor (void) const |
void | setNoWindows (int noWindows) |
int | getNoWindows (void) const |
Private Member Functions | |
double | sum (void) |
int | sizeOfFirstWindow (void) |
void | createWindows (void) |
void | scaleWindows (void) |
void | createFFTEnergies (void) |
int | getFactorIndex (double value) const |
Private Attributes | |
double | interleaving |
double | factor |
int | noWindows |
int | noData |
double * | data |
vector< double > | window |
vector< double > | energy |
Used to convert raw audio data created by the AUFile class to a small vector. The vector holds multiple doubles that correspond to windowed energy levels in the frequency band of the input sample. The windows the vector elements are created from overlap with each other.
|
Main constructor. |
|
Main destructor. |
|
Copy constructor.
|
|
Main constructor.
|
|
Convert raw audio data to windowed vector. The conversion is done in multiple steps:
|
|
Generate the FFT energy vector. |
|
Compute the windowing of the audio data. |
|
Getter for the enlargement factor.
|
|
Small value to index conversion function.
|
|
Getter for the FFT frequency energy vector.
|
|
Getter for the interleaving factor.
|
|
Getter function for the number of windows
|
|
Getter for the data array prepared for the neuronal net
|
|
Loader for preprocessor settings.
|
|
Save method for the preprocessor settings.
|
|
Scale the audio data to values between -1 and 1. |
|
Setter function for the factor to enlargement factor.
|
|
Setter function for the interleaving factor.
|
|
Setter function for the number of windows
|
|
Compute the size of the first window.
|
|
Compute the sum for the calculation of the first window's size The sum is defined on page 15 of the Projekt-NN.ps project file. |
|
Pointer to the beginning of the audio data array. |
|
Frequency based energy levels, as result of the amplitudes of the FFT real and imaginary parts. |
|
Factor to be multiplied by the size of the predecessor window in order to enlarge the actual windowsize. |
|
Percentage of interleaving (a value between zero and one). |
|
Size of the double array containing the audio values. |
|
Overall number of available windows (vector size). |
|
Contains the data vector extracted from the audio stream |