Changeset ee8a57c for src/mathutils.c


Ignore:
Timestamp:
Mar 10, 2017, 5:17:33 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, sampler
Children:
e149aa9
Parents:
155cc10
Message:

src/mathutils.h: add fvec_push

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mathutils.c

    r155cc10 ree8a57c  
    290290}
    291291
     292void fvec_push(fvec_t *in, smpl_t new_elem) {
     293  uint_t i;
     294  for (i = 0; i < in->length - 1; i++) {
     295    in->data[i] = in->data[i + 1];
     296  }
     297  in->data[in->length - 1] = new_elem;
     298}
     299
    292300smpl_t
    293301aubio_level_lin (const fvec_t * f)
Note: See TracChangeset for help on using the changeset viewer.