Changeset 21234ee for src/lvec.c
- Timestamp:
- Dec 18, 2013, 8:07:27 AM (10 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:
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lvec.c
r1573b16 r21234ee 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
Note: See TracChangeset
for help on using the changeset viewer.