- Timestamp:
- Dec 18, 2013, 7:29:16 AM (11 years ago)
- 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:
- c3c6305
- Parents:
- 4f2c28c
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lvec.c
r4f2c28c r6ede3ab 40 40 s->data[position] = data; 41 41 } 42 lsmp_t lvec_ read_sample(lvec_t *s, uint_t position) {42 lsmp_t lvec_get_sample(lvec_t *s, uint_t position) { 43 43 return s->data[position]; 44 44 } … … 58 58 } 59 59 60 void lvec_set (lvec_t *s, smpl_t val) {60 void lvec_set_all (lvec_t *s, smpl_t val) { 61 61 uint_t j; 62 62 for (j=0; j< s->length; j++) { … … 69 69 memset(s->data, 0, s->length * sizeof(lsmp_t)); 70 70 #else 71 lvec_set (s, 0.);71 lvec_set_all (s, 0.); 72 72 #endif 73 73 } 74 74 75 75 void lvec_ones(lvec_t *s) { 76 lvec_set (s, 1.);76 lvec_set_all (s, 1.); 77 77 } 78 78 -
src/lvec.h
r4f2c28c r6ede3ab 58 58 */ 59 59 void del_lvec(lvec_t *s); 60 60 61 /** read sample value in a buffer 61 62 Note that this function is not used in the aubio library, since the same63 result can be obtained using vec->data[position]. Its purpose is to64 access these values from wrappers, as created by swig.65 62 66 63 \param s vector to read from … … 68 65 69 66 */ 70 lsmp_t lvec_read_sample(lvec_t *s, uint_t position); 67 lsmp_t lvec_get_sample(lvec_t *s, uint_t position); 68 71 69 /** write sample value in a buffer 72 73 Note that this function is not used in the aubio library, since the same74 result can be obtained by assigning vec->data[position]. Its purpose75 is to access these values from wrappers, as created by swig.76 70 77 71 \param s vector to write to … … 80 74 81 75 */ 82 void lvec_ write_sample(lvec_t *s, lsmp_t data, uint_t position);76 void lvec_set_sample(lvec_t *s, lsmp_t data, uint_t position); 83 77 84 78 /** read data from a buffer 85 86 Note that this function is not used in the aubio library, since the same87 result can be obtained with vec->data. Its purpose is to access these values88 from wrappers, as created by swig.89 79 90 80 \param s vector to read from … … 106 96 107 97 */ 108 void lvec_set (lvec_t *s, smpl_t val);98 void lvec_set_all(lvec_t *s, smpl_t val); 109 99 110 100 /** set all elements to zero
Note: See TracChangeset
for help on using the changeset viewer.