Changeset 21234ee for src/fmat.h
- 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/fmat.h
r1573b16 r21234ee 1 1 /* 2 Copyright (C) 2009 Paul Brossier <piem@aubio.org>2 Copyright (C) 2009-2013 Paul Brossier <piem@aubio.org> 3 3 4 4 This file is part of aubio. … … 19 19 */ 20 20 21 #ifndef _ FMAT_H22 #define _ FMAT_H21 #ifndef _AUBIO__FMAT_H 22 #define _AUBIO__FMAT_H 23 23 24 24 #ifdef __cplusplus … … 50 50 51 51 */ 52 fmat_t * new_fmat(uint_t length, uint_t height); 52 fmat_t * new_fmat(uint_t height, uint_t length); 53 53 54 /** fmat_t buffer deletion function 54 55 … … 57 58 */ 58 59 void del_fmat(fmat_t *s); 60 59 61 /** read sample value in a buffer 60 61 Note that this function is not used in the aubio library, since the same62 result can be obtained using vec->data[channel][position]. Its purpose is to63 access these values from wrappers, as created by swig.64 62 65 63 \param s vector to read from … … 68 66 69 67 */ 70 smpl_t fmat_read_sample(fmat_t *s, uint_t channel, uint_t position); 68 smpl_t fmat_get_sample(fmat_t *s, uint_t channel, uint_t position); 69 71 70 /** 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[channel][position]. Its purpose75 is to access these values from wrappers, as created by swig.76 71 77 72 \param s vector to write to … … 81 76 82 77 */ 83 void fmat_write_sample(fmat_t *s, smpl_t data, uint_t channel, uint_t position); 78 void fmat_set_sample(fmat_t *s, smpl_t data, uint_t channel, uint_t position); 79 84 80 /** read channel vector 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[channel]. Its purpose is to access88 these values from wrappers, as created by swig.89 81 90 82 \param s vector to read from … … 94 86 */ 95 87 void fmat_get_channel (fmat_t *s, uint_t channel, fvec_t *output); 96 /** write channel vector into a buffer97 88 98 Note that this function is not used in the aubio library, since the same 99 result can be obtained by assigning vec->data[channel]. Its purpose is to 100 access these values from wrappers, as created by swig. 89 /** get vector buffer from an fmat data 101 90 102 \param s vector to write to 103 \param data vector of [length] values to write 104 \param channel channel to write to 91 \param s vector to read from 92 \param channel channel to read from 105 93 106 94 */ 107 void fmat_put_channel(fmat_t *s, smpl_t * data, uint_t channel); 95 smpl_t * fmat_get_channel_data (fmat_t *s, uint_t channel); 96 108 97 /** read data from a buffer 109 110 Note that this function is not used in the aubio library, since the same111 result can be obtained with vec->data. Its purpose is to access these values112 from wrappers, as created by swig.113 98 114 99 \param s vector to read from … … 176 161 #endif 177 162 178 #endif /* _ FMAT_H */163 #endif /* _AUBIO__FMAT_H */
Note: See TracChangeset
for help on using the changeset viewer.