Changeset 3cd9fdd
- Timestamp:
- Oct 17, 2013, 1:09:20 PM (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:
- b0706d8
- Parents:
- 8617843
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fmat.c
r8617843 r3cd9fdd 55 55 s->data[channel] = data; 56 56 } 57 smpl_t * fmat_get_channel(fmat_t *s, uint_t channel) { 58 return s->data[channel]; 57 void fmat_get_channel(fmat_t *s, uint_t channel, fvec_t *output) { 58 output->data = s->data[channel]; 59 output->length = s->length; 60 return; 59 61 } 60 62 -
src/fmat.h
r8617843 r3cd9fdd 92 92 93 93 */ 94 smpl_t * fmat_get_channel(fmat_t *s, uint_t channel);94 void fmat_get_channel (fmat_t *s, uint_t channel, fvec_t *output); 95 95 /** write channel vector into a buffer 96 96 -
tests/src/test-fmat.c
r8617843 r3cd9fdd 18 18 } 19 19 } 20 fvec_t channel_onstack; 21 fvec_t *channel = &channel_onstack; 22 fmat_get_channel(mat, 1, channel); 23 fvec_print (channel); 20 24 // print out matrix 21 25 fmat_print(mat);
Note: See TracChangeset
for help on using the changeset viewer.