Changeset 21234ee for src/lvec.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/lvec.c

    r1573b16 r21234ee  
    4040  s->data[position] = data;
    4141}
    42 lsmp_t lvec_read_sample(lvec_t *s, uint_t position) {
     42lsmp_t lvec_get_sample(lvec_t *s, uint_t position) {
    4343  return s->data[position];
    4444}
     
    5858}
    5959
    60 void lvec_set(lvec_t *s, smpl_t val) {
     60void lvec_set_all (lvec_t *s, smpl_t val) {
    6161  uint_t j;
    6262  for (j=0; j< s->length; j++) {
     
    6969  memset(s->data, 0, s->length * sizeof(lsmp_t));
    7070#else
    71   lvec_set(s, 0.);
     71  lvec_set_all (s, 0.);
    7272#endif
    7373}
    7474
    7575void lvec_ones(lvec_t *s) {
    76   lvec_set(s, 1.);
     76  lvec_set_all (s, 1.);
    7777}
    7878
Note: See TracChangeset for help on using the changeset viewer.