- Timestamp:
- Mar 3, 2013, 4:29:36 AM (12 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:
- 69b11d8
- Parents:
- f9d5346
- Location:
- src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/cvec.h
rf9d5346 rf72364d 38 38 */ 39 39 40 /** Buffer for complex data */ 40 /** Buffer for complex data 41 42 \code 43 44 uint_t buffer_size = 1024; 45 46 // create a complex vector of 512 values 47 cvec_t * input = new_cvec (buffer_size); 48 49 // set some values of the vector 50 input->norm[23] = 2.; 51 input->phas[23] = M_PI; 52 // .. 53 54 // compute the mean of the vector 55 mean = cvec_mean(input); 56 57 // destroy the vector 58 del_cvec (input); 59 60 \endcode 61 62 */ 41 63 typedef struct { 42 64 uint_t length; /**< length of buffer = (requested length)/2 + 1 */ … … 69 91 is to access these values from wrappers, as created by swig. 70 92 71 \param s vector to write to 93 \param s vector to write to 72 94 \param data norm value to write in s->norm[position] 73 95 \param position sample position to write to … … 130 152 smpl_t * cvec_get_phas(cvec_t *s); 131 153 132 /** print out cvec data 154 /** print out cvec data 133 155 134 \param s vector to print out 156 \param s vector to print out 135 157 136 158 */ … … 145 167 void cvec_set(cvec_t *s, smpl_t val); 146 168 147 /** set all elements to zero 169 /** set all elements to zero 148 170 149 171 \param s vector to modify … … 152 174 void cvec_zeros(cvec_t *s); 153 175 154 /** set all elements to ones 176 /** set all elements to ones 155 177 156 178 \param s vector to modify -
src/fmat.h
rf9d5346 rf72364d 28 28 /** \file 29 29 30 Real buffers30 Matrix of real valued data 31 31 32 This file specifies the fmat_t type, which is used in aubio to store real 33 valued arrays. 32 This file specifies the fmat_t type, which is used in aubio to store arrays 33 of floating point values. 34 35 \example test-fmat.c 34 36 35 37 */ … … 37 39 /** Buffer for real data */ 38 40 typedef struct { 39 uint_t length; /**< length of buffer*/40 uint_t height; /**< number of channels*/41 smpl_t **data; /**< data array of size [length] * [channels] */41 uint_t length; /**< length of matrix */ 42 uint_t height; /**< height of matrix */ 43 smpl_t **data; /**< data array of size [length] * [height] */ 42 44 } fmat_t; 43 45 -
src/fvec.h
rf9d5346 rf72364d 28 28 /** \file 29 29 30 Real buffers30 Vector of real-valued data 31 31 32 This file specifies the fvec_t buffer type, which is used throughout aubio to 33 store real data. 32 This file specifies the ::fvec_t buffer type, which is used throughout aubio 33 to store vector of real-valued ::smpl_t. 34 35 \example test-fvec.c 34 36 35 37 */ 36 38 37 /** Buffer for real data */ 39 /** Buffer for real data 40 41 Vector of real-valued data 42 43 ::fvec_t is is the structure used to store vector of real-valued data, ::smpl_t . 44 45 \code 46 47 uint_t buffer_size = 1024; 48 49 // create a vector of 512 values 50 fvec_t * input = new_fvec (buffer_size); 51 52 // set some values of the vector 53 input->data[23] = 2.; 54 // .. 55 56 // compute the mean of the vector 57 mean = fvec_mean(a_vector); 58 59 // destroy the vector 60 del_fvec(a_vector); 61 62 \endcode 63 64 See `examples/` and `tests/src` directories for more examples. 65 66 */ 38 67 typedef struct { 39 uint_t length; 40 smpl_t *data; /**< data array of size [length]*/68 uint_t length; /**< length of buffer */ 69 smpl_t *data; /**< data vector of length ::fvec_t.length */ 41 70 } fvec_t; 42 71 -
src/lvec.h
rf9d5346 rf72364d 28 28 /** \file 29 29 30 Real buffers30 Vector of real-valued data in double precision 31 31 32 This file specifies the lvec_t buffer type, which is used in aubio to store 33 double precision real data. Note that the lvec_t data type is mostly used for 34 IIR filters (see temporal/filter.h). 32 This file specifies the ::lvec_t buffer type, which is used in some places in 33 aubio to store a vector of ::lsmp_t. 34 35 Note: the lvec_t data type is required in some algorithms such as IIR filters 36 (see temporal/filter.h). 37 38 \example test-lvec.c 35 39 36 40 */ … … 38 42 /** Buffer for real data in double precision */ 39 43 typedef struct { 40 uint_t length; 41 lsmp_t *data; 44 uint_t length; /**< length of buffer */ 45 lsmp_t *data; /**< data array of size [length] */ 42 46 } lvec_t; 43 47 -
src/mathutils.h
rf9d5346 rf72364d 24 24 25 25 \example test-mathutils.c 26 \example test-mathutils-window.c 26 27 27 28 */
Note: See TracChangeset
for help on using the changeset viewer.