30 #if defined( CINDER_COCOA )
31 #define CINDER_AUDIO_VDSP
38 namespace cinder {
namespace audio {
namespace dsp {
64 void add(
const float *array,
float scalar,
float *result,
size_t length );
66 void add(
const float *arrayA,
const float *arrayB,
float *result,
size_t length );
68 void sub(
const float *array,
float scalar,
float *result,
size_t length );
70 void sub(
const float *arrayA,
const float *arrayB,
float *result,
size_t length );
72 void mul(
const float *array,
float scalar,
float *result,
size_t length );
74 void mul(
const float *arrayA,
const float *arrayB,
float *result,
size_t length );
76 void divide(
const float *array,
float scalar,
float *result,
size_t length );
78 void divide(
const float *arrayA,
const float *arrayB,
float *result,
size_t length );
80 void addMul(
const float *arrayA,
const float *arrayB,
float scalar,
float *result,
size_t length );
82 float sum(
const float *array,
size_t length );
84 float rms(
const float *array,
size_t length );
void generateWindow(WindowType windowType, float *window, size_t length)
fills window array with a windowing function specified by windowType
Definition: Dsp.cpp:77
void add(const float *array, float scalar, float *result, size_t length)
add scalar to array of length length, into result.
Definition: Dsp.cpp:183
void generateBlackmanWindow(float *window, size_t length)
Fills length samples of window with a Blackmann windowing function.
Definition: Dsp.cpp:40
float sum(const float *array, size_t length)
returns the sum of array
Definition: Dsp.cpp:175
void generateHammingWindow(float *window, size_t length)
Fills length samples of window with a Hamming windowing function.
Definition: Dsp.cpp:54
void mul(const float *array, float scalar, float *result, size_t length)
multiplies length elements of array by scalar and places the result at result.
Definition: Dsp.cpp:218
GLuint GLsizei GLsizei * length
Definition: GLee.h:2313
void fill(float value, float *array, size_t length)
fills array with value value
Definition: Dsp.cpp:169
GLsizei const GLfloat * value
Definition: GLee.h:2487
Window window
Definition: GLee.h:17134
void generateHannWindow(float *window, size_t length)
Fills length samples of window with a Hann windowing function.
Definition: Dsp.cpp:66
void sub(const float *array, float scalar, float *result, size_t length)
subtract scalar from array of length length, into result.
Definition: Dsp.cpp:195
void 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 ...
Definition: Dsp.cpp:241
void normalize(float *array, size_t length, float maxValue=1)
normalizes array to maxValue (default = 1)
Definition: Dsp.cpp:249
float rms(const float *array, size_t length)
returns the Root-Mean-Squared value of array
Definition: Dsp.cpp:207
void divide(const float *array, float scalar, float *result, size_t length)
divides length elements of array by scalar and places the result at result.
Definition: Dsp.cpp:230
WindowType
Describes the avaiable windowing functions.
Definition: Dsp.h:49