Changeset 0ce97483
- Timestamp:
- Oct 7, 2009, 11:19:36 PM (15 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:
- 277918b
- Parents:
- 01b8fcc
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/utils/hist.c
r01b8fcc r0ce97483 114 114 115 115 /* readapt */ 116 aubio_scale_set (s->scaler, ilow, ihig, 0, s->nelems);116 aubio_scale_set_limits (s->scaler, ilow, ihig, 0, s->nelems); 117 117 118 118 /* recalculate centers */ -
src/utils/scale.c
r01b8fcc r0ce97483 40 40 smpl_t olow, smpl_t ohig) { 41 41 aubio_scale_t * s = AUBIO_NEW(aubio_scale_t); 42 aubio_scale_set (s, ilow, ihig, olow, ohig);42 aubio_scale_set_limits (s, ilow, ihig, olow, ohig); 43 43 return s; 44 44 } … … 48 48 } 49 49 50 void aubio_scale_set (aubio_scale_t *s, smpl_t ilow, smpl_t ihig,50 void aubio_scale_set_limits (aubio_scale_t *s, smpl_t ilow, smpl_t ihig, 51 51 smpl_t olow, smpl_t ohig) { 52 52 smpl_t inputrange = ihig - ilow; -
src/utils/scale.h
r01b8fcc r0ce97483 69 69 70 70 */ 71 void aubio_scale_set (aubio_scale_t *s, smpl_t ilow, smpl_t ihig,71 void aubio_scale_set_limits (aubio_scale_t *s, smpl_t ilow, smpl_t ihig, 72 72 smpl_t olow, smpl_t ohig); 73 73 -
swig/aubio.i
r01b8fcc r0ce97483 176 176 /* scale */ 177 177 extern aubio_scale_t * new_aubio_scale(smpl_t flow, smpl_t fhig, smpl_t ilow, smpl_t ihig); 178 extern void aubio_scale_set (aubio_scale_t *s, smpl_t ilow, smpl_t ihig, smpl_t olow, smpl_t ohig);178 extern void aubio_scale_set_limits (aubio_scale_t *s, smpl_t ilow, smpl_t ihig, smpl_t olow, smpl_t ohig); 179 179 extern void aubio_scale_do(aubio_scale_t *s, fvec_t * input); 180 180 extern void del_aubio_scale(aubio_scale_t *s); … … 241 241 aubio_pitchmcomb_t * new_aubio_pitchmcomb(uint_t bufsize, uint_t hopsize, uint_t channels, uint_t samplerate); 242 242 smpl_t aubio_pitchmcomb_do (aubio_pitchmcomb_t * p, cvec_t * fftgrain); 243 uint_t aubio_pitch_cands(aubio_pitchmcomb_t * p, cvec_t * fftgrain, smpl_t * cands);244 243 void del_aubio_pitchmcomb (aubio_pitchmcomb_t *p); 245 244 -
tests/src/test-scale.c
r01b8fcc r0ce97483 7 7 fvec_t * in = new_fvec (win_s, channels); /* input buffer */ 8 8 aubio_scale_t * o = new_aubio_scale(0,1,2,3); 9 aubio_scale_set (o,0,1,2,3);9 aubio_scale_set_limits (o,0,1,2,3); 10 10 uint_t i = 0; 11 11
Note: See TracChangeset
for help on using the changeset viewer.