Changeset 21234ee for src/fvec.c


Ignore:
Timestamp:
Dec 18, 2013, 8:07:27 AM (10 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
6465d7f
Parents:
1573b16 (diff), c3c6305 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of aubio.org:/git/aubio/aubio into develop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/fvec.c

    r1573b16 r21234ee  
    3737}
    3838
    39 void fvec_write_sample(fvec_t *s, smpl_t data, uint_t position) {
     39void fvec_set_sample(fvec_t *s, smpl_t data, uint_t position) {
    4040  s->data[position] = data;
    4141}
    4242
    43 smpl_t fvec_read_sample(fvec_t *s, uint_t position) {
     43smpl_t fvec_get_sample(fvec_t *s, uint_t position) {
    4444  return s->data[position];
    4545}
     
    5959}
    6060
    61 void fvec_set(fvec_t *s, smpl_t val) {
     61void fvec_set_all (fvec_t *s, smpl_t val) {
    6262  uint_t j;
    6363  for (j=0; j< s->length; j++) {
     
    7070  memset(s->data, 0, s->length * sizeof(smpl_t));
    7171#else
    72   fvec_set(s, 0.);
     72  fvec_set_all (s, 0.);
    7373#endif
    7474}
    7575
    7676void fvec_ones(fvec_t *s) {
    77   fvec_set(s, 1.);
     77  fvec_set_all (s, 1.);
    7878}
    7979
Note: See TracChangeset for help on using the changeset viewer.