Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Functions
Dsp.cpp File Reference
#include "cinder/audio/dsp/Dsp.h"
#include "cinder/CinderMath.h"
Include dependency graph for Dsp.cpp:

Namespaces

 cinder
 
 cinder::audio
 
 cinder::audio::dsp
 

Functions

void cinder::audio::dsp::generateBlackmanWindow (float *window, size_t length)
 Fills length samples of window with a Blackmann windowing function. More...
 
void cinder::audio::dsp::generateHammingWindow (float *window, size_t length)
 Fills length samples of window with a Hamming windowing function. More...
 
void cinder::audio::dsp::generateHannWindow (float *window, size_t length)
 Fills length samples of window with a Hann windowing function. More...
 
void cinder::audio::dsp::generateWindow (WindowType windowType, float *window, size_t length)
 fills window array with a windowing function specified by windowType More...
 
void cinder::audio::dsp::fill (float value, float *array, size_t length)
 fills array with value value More...
 
float cinder::audio::dsp::sum (const float *array, size_t length)
 returns the sum of array More...
 
void cinder::audio::dsp::add (const float *array, float scalar, float *result, size_t length)
 add scalar to array of length length, into result. More...
 
void cinder::audio::dsp::add (const float *arrayA, const float *arrayB, float *result, size_t length)
 add length elements of arrayA and arrayB (element-wise) into result. More...
 
void cinder::audio::dsp::sub (const float *array, float scalar, float *result, size_t length)
 subtract scalar from array of length length, into result. More...
 
void cinder::audio::dsp::sub (const float *arrayA, const float *arrayB, float *result, size_t length)
 subtract length elements of arrayB from arrayA (element-wise) into result. More...
 
float cinder::audio::dsp::rms (const float *array, size_t length)
 returns the Root-Mean-Squared value of array More...
 
void cinder::audio::dsp::mul (const float *array, float scalar, float *result, size_t length)
 multiplies length elements of array by scalar and places the result at result. More...
 
void cinder::audio::dsp::mul (const float *arrayA, const float *arrayB, float *result, size_t length)
 multiplies length elements of arrayA by arrayB and places the result at result. More...
 
void cinder::audio::dsp::divide (const float *array, float scalar, float *result, size_t length)
 divides length elements of array by scalar and places the result at result. More...
 
void cinder::audio::dsp::divide (const float *arrayA, const float *arrayB, float *result, size_t length)
 divides length elements of arrayA by arrayB and places the result at result. More...
 
void cinder::audio::dsp::addMul (const float *arrayA, const float *arrayB, float scalar, float *result, size_t length)
 sums length elements of arrayA by arrayB (element-wise), then scales by scalar and places the result at result. More...
 
void cinder::audio::dsp::normalize (float *array, size_t length, float maxValue=1)
 normalizes array to maxValue (default = 1) More...