Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Enumerations | Functions
Dsp.h File Reference
#include "cinder/CinderAssert.h"
#include "cinder/Cinder.h"
#include <atomic>
#include <vector>
#include <cmath>
Include dependency graph for Dsp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

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

Enumerations

enum  cinder::audio::dsp::WindowType { cinder::audio::dsp::WindowType::BLACKMAN, cinder::audio::dsp::WindowType::HAMMING, cinder::audio::dsp::WindowType::HANN, cinder::audio::dsp::WindowType::RECT }
 Describes the avaiable windowing functions. More...
 

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...
 
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...
 
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...
 
float cinder::audio::dsp::sum (const float *array, size_t length)
 returns the sum of array 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::normalize (float *array, size_t length, float maxValue=1)
 normalizes array to maxValue (default = 1) More...