Changeset b155ed03 for src/vecutils.c
 Timestamp:
 Dec 17, 2013, 4:42:20 PM (6 years ago)
 Branches:
 feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
 Children:
 ad76ce2
 Parents:
 aa033c2
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/vecutils.c
raa033c2 rb155ed03 15 15 } 16 16 17 #define AUBIO_OP_C_AND_F(OPNAME, OP) \ 18 AUBIO_OP(OPNAME, OP, fvec, data) \ 19 AUBIO_OP(norm ## _ ## OPNAME, OP, cvec, norm) \ 20 AUBIO_OP(phas ## _ ## OPNAME, OP, cvec, phas) 17 #define AUBIO_OP_C(OPNAME, OP) \ 18 AUBIO_OP(OPNAME, OP, fvec, data) 21 19 22 AUBIO_OP_C _AND_F(exp, EXP)23 AUBIO_OP_C _AND_F(cos, COS)24 AUBIO_OP_C _AND_F(sin, SIN)25 AUBIO_OP_C _AND_F(abs, ABS)26 AUBIO_OP_C _AND_F(sqrt, SQRT)27 AUBIO_OP_C _AND_F(log10, SAFE_LOG10)28 AUBIO_OP_C _AND_F(log, SAFE_LOG)29 AUBIO_OP_C _AND_F(floor, FLOOR)30 AUBIO_OP_C _AND_F(ceil, CEIL)31 AUBIO_OP_C _AND_F(round, ROUND)20 AUBIO_OP_C(exp, EXP) 21 AUBIO_OP_C(cos, COS) 22 AUBIO_OP_C(sin, SIN) 23 AUBIO_OP_C(abs, ABS) 24 AUBIO_OP_C(sqrt, SQRT) 25 AUBIO_OP_C(log10, SAFE_LOG10) 26 AUBIO_OP_C(log, SAFE_LOG) 27 AUBIO_OP_C(floor, FLOOR) 28 AUBIO_OP_C(ceil, CEIL) 29 AUBIO_OP_C(round, ROUND) 32 30 33 //AUBIO_OP_C_AND_F(pow, POW)34 31 void fvec_pow (fvec_t *s, smpl_t power) 35 32 { … … 39 36 } 40 37 } 41 42 void cvec_pow (cvec_t *s, smpl_t power)43 {44 uint_t j;45 for (j = 0; j < s>length; j++) {46 s>norm[j] = POW(s>norm[j], power);47 }48 }49
Note: See TracChangeset
for help on using the changeset viewer.