MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / new_cvec

Function new_cvec

deps/aubio/src/cvec.c:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include "cvec.h"
23
24cvec_t * new_cvec(uint_t length) {
25 cvec_t * s;
26 if ((sint_t)length <= 0) {
27 return NULL;
28 }
29 s = AUBIO_NEW(cvec_t);
30 s->length = length/2 + 1;
31 s->norm = AUBIO_ARRAY(smpl_t,s->length);
32 s->phas = AUBIO_ARRAY(smpl_t,s->length);
33 return s;
34}
35
36void del_cvec(cvec_t *s) {
37 AUBIO_FREE(s->norm);

Callers 2

new_aubio_pitchfcombFunction · 0.85
new_aubio_pitchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected