MCPcopy Create free account
hub / github.com/CalcProgrammer1/KeyboardVisualizer / apply_window

Function apply_window

KeyboardVisualizerCommon/chuck_fft.c:86–92  ·  view source on GitHub ↗

----------------------------------------------------------------------------- name: apply_window() desc: apply a window to data -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

84// desc: apply a window to data
85//-----------------------------------------------------------------------------
86void apply_window(float * data, float * window, unsigned long length)
87{
88 unsigned long i;
89
90 for (i = 0; i < length; i++)
91 data[i] *= window[i];
92}
93
94static float PI;
95static float TWOPI;

Callers 1

UpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected