Changeset 7c206df
- Timestamp:
- Feb 28, 2006, 8:30:11 AM (19 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:
- 431e9d8
- Parents:
- d3efa4e
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sample.c
rd3efa4e r7c206df 90 90 AUBIO_FREE(s); 91 91 } 92 93 void cvec_write_norm(cvec_t *s, smpl_t data, uint_t channel, uint_t position) { 94 s->norm[channel][position] = data; 95 } 96 void cvec_write_phas(cvec_t *s, smpl_t data, uint_t channel, uint_t position) { 97 s->phas[channel][position] = data; 98 } 99 smpl_t cvec_read_norm(cvec_t *s, uint_t channel, uint_t position) { 100 return s->norm[channel][position]; 101 } 102 smpl_t cvec_read_phas(cvec_t *s, uint_t channel, uint_t position) { 103 return s->phas[channel][position]; 104 } 105 void cvec_put_norm_channel(cvec_t *s, smpl_t * data, uint_t channel) { 106 s->norm[channel] = data; 107 } 108 void cvec_put_phas_channel(cvec_t *s, smpl_t * data, uint_t channel) { 109 s->phas[channel] = data; 110 } 111 smpl_t * cvec_get_norm_channel(cvec_t *s, uint_t channel) { 112 return s->norm[channel]; 113 } 114 smpl_t * cvec_get_phas_channel(cvec_t *s, uint_t channel) { 115 return s->phas[channel]; 116 } 117 smpl_t ** cvec_get_norm(cvec_t *s) { 118 return s->norm; 119 } 120 smpl_t ** cvec_get_phas(cvec_t *s) { 121 return s->phas; 122 } -
src/sample.h
rd3efa4e r7c206df 72 72 smpl_t ** fvec_get_data(fvec_t *s); 73 73 void fvec_put_channel(fvec_t *s, smpl_t * data, uint_t channel); 74 74 75 extern cvec_t * new_cvec(uint_t length, uint_t channels); 75 76 extern void del_cvec(cvec_t *s); 77 void cvec_write_norm(cvec_t *s, smpl_t data, uint_t channel, uint_t position); 78 void cvec_write_phas(cvec_t *s, smpl_t data, uint_t channel, uint_t position); 79 smpl_t cvec_read_norm(cvec_t *s, uint_t channel, uint_t position); 80 smpl_t cvec_read_phas(cvec_t *s, uint_t channel, uint_t position); 81 void cvec_put_norm_channel(cvec_t *s, smpl_t * data, uint_t channel); 82 void cvec_put_phas_channel(cvec_t *s, smpl_t * data, uint_t channel); 83 smpl_t * cvec_get_norm_channel(cvec_t *s, uint_t channel); 84 smpl_t * cvec_get_phas_channel(cvec_t *s, uint_t channel); 85 smpl_t ** cvec_get_norm(cvec_t *s); 86 smpl_t ** cvec_get_phas(cvec_t *s); 76 87 77 88 #ifdef __cplusplus -
swig/aubio.i
rd3efa4e r7c206df 49 49 extern cvec_t * new_cvec(uint_t length, uint_t channels); 50 50 extern void del_cvec(cvec_t *s); 51 extern void cvec_write_norm(cvec_t *s, smpl_t data, uint_t channel, uint_t position); 52 extern void cvec_write_phas(cvec_t *s, smpl_t data, uint_t channel, uint_t position); 53 extern smpl_t cvec_read_norm(cvec_t *s, uint_t channel, uint_t position); 54 extern smpl_t cvec_read_phas(cvec_t *s, uint_t channel, uint_t position); 55 extern void cvec_put_norm_channel(cvec_t *s, smpl_t * data, uint_t channel); 56 extern void cvec_put_phas_channel(cvec_t *s, smpl_t * data, uint_t channel); 57 extern smpl_t * cvec_get_norm_channel(cvec_t *s, uint_t channel); 58 extern smpl_t * cvec_get_phas_channel(cvec_t *s, uint_t channel); 59 extern smpl_t ** cvec_get_norm(cvec_t *s); 60 extern smpl_t ** cvec_get_phas(cvec_t *s); 51 61 52 62
Note: See TracChangeset
for help on using the changeset viewer.