- Timestamp:
- Apr 21, 2016, 7:08:17 PM (9 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:
- 69f74f0
- Parents:
- e9bd022
- Location:
- src/utils
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/utils/hist.c
re9bd022 r55d1fa4 138 138 } 139 139 140 smpl_t aubio_hist_mean ( aubio_hist_t *s) {140 smpl_t aubio_hist_mean (const aubio_hist_t *s) { 141 141 uint_t j; 142 142 smpl_t tmp = 0.0; -
src/utils/hist.h
re9bd022 r55d1fa4 51 51 void aubio_hist_do_notnull(aubio_hist_t *s, fvec_t * input); 52 52 /** compute the mean of the histogram */ 53 smpl_t aubio_hist_mean( aubio_hist_t *s);53 smpl_t aubio_hist_mean(const aubio_hist_t *s); 54 54 /** weight the histogram */ 55 55 void aubio_hist_weight(aubio_hist_t *s); -
src/utils/parameter.c
re9bd022 r55d1fa4 85 85 } 86 86 87 smpl_t aubio_parameter_get_current_value ( aubio_parameter_t * s )87 smpl_t aubio_parameter_get_current_value ( const aubio_parameter_t * s ) 88 88 { 89 89 return s->current_value; … … 110 110 } 111 111 112 uint_t aubio_parameter_get_steps ( aubio_parameter_t * param )112 uint_t aubio_parameter_get_steps ( const aubio_parameter_t * param ) 113 113 { 114 114 return param->steps; … … 121 121 } 122 122 123 smpl_t aubio_parameter_get_min_value ( aubio_parameter_t * param )123 smpl_t aubio_parameter_get_min_value ( const aubio_parameter_t * param ) 124 124 { 125 125 return param->min_value; … … 132 132 } 133 133 134 smpl_t aubio_parameter_get_max_value ( aubio_parameter_t * param )134 smpl_t aubio_parameter_get_max_value ( const aubio_parameter_t * param ) 135 135 { 136 136 return param->max_value; -
src/utils/parameter.h
re9bd022 r55d1fa4 77 77 78 78 */ 79 smpl_t aubio_parameter_get_current_value ( aubio_parameter_t * param );79 smpl_t aubio_parameter_get_current_value ( const aubio_parameter_t * param ); 80 80 81 81 /** set current parameter value, skipping interpolation … … 106 106 107 107 */ 108 uint_t aubio_parameter_get_steps ( aubio_parameter_t * param);108 uint_t aubio_parameter_get_steps ( const aubio_parameter_t * param); 109 109 110 110 /** set minimum value of this parameter … … 125 125 126 126 */ 127 smpl_t aubio_parameter_get_min_value ( aubio_parameter_t * param );127 smpl_t aubio_parameter_get_min_value ( const aubio_parameter_t * param ); 128 128 129 129 /** set maximum value of this parameter … … 144 144 145 145 */ 146 smpl_t aubio_parameter_get_max_value ( aubio_parameter_t * param );146 smpl_t aubio_parameter_get_max_value ( const aubio_parameter_t * param ); 147 147 148 148 /** destroy ::aubio_parameter_t object -
src/utils/scale.c
re9bd022 r55d1fa4 38 38 }; 39 39 40 aubio_scale_t * new_aubio_scale (smpl_t ilow, smpl_t ihig, 40 aubio_scale_t * new_aubio_scale (smpl_t ilow, smpl_t ihig, 41 41 smpl_t olow, smpl_t ohig) { 42 42 aubio_scale_t * s = AUBIO_NEW(aubio_scale_t);
Note: See TracChangeset
for help on using the changeset viewer.