smpl_t step = (ihig-ilow)/(smpl_t)(s->nelems);
/* readapt */
- aubio_scale_set(s->scaler, ilow, ihig, 0, s->nelems);
+ aubio_scale_set_limits (s->scaler, ilow, ihig, 0, s->nelems);
/* recalculate centers */
s->cent->data[0][0] = ilow + 0.5f * step;
aubio_scale_t * new_aubio_scale (smpl_t ilow, smpl_t ihig,
smpl_t olow, smpl_t ohig) {
aubio_scale_t * s = AUBIO_NEW(aubio_scale_t);
- aubio_scale_set (s, ilow, ihig, olow, ohig);
+ aubio_scale_set_limits (s, ilow, ihig, olow, ohig);
return s;
}
AUBIO_FREE(s);
}
-void aubio_scale_set (aubio_scale_t *s, smpl_t ilow, smpl_t ihig,
+void aubio_scale_set_limits (aubio_scale_t *s, smpl_t ilow, smpl_t ihig,
smpl_t olow, smpl_t ohig) {
smpl_t inputrange = ihig - ilow;
smpl_t outputrange= ohig - olow;
\param ihig higher value of output function
*/
-void aubio_scale_set (aubio_scale_t *s, smpl_t ilow, smpl_t ihig,
+void aubio_scale_set_limits (aubio_scale_t *s, smpl_t ilow, smpl_t ihig,
smpl_t olow, smpl_t ohig);
#ifdef __cplusplus
/* scale */
extern aubio_scale_t * new_aubio_scale(smpl_t flow, smpl_t fhig, smpl_t ilow, smpl_t ihig);
-extern void aubio_scale_set (aubio_scale_t *s, smpl_t ilow, smpl_t ihig, smpl_t olow, smpl_t ohig);
+extern void aubio_scale_set_limits (aubio_scale_t *s, smpl_t ilow, smpl_t ihig, smpl_t olow, smpl_t ohig);
extern void aubio_scale_do(aubio_scale_t *s, fvec_t * input);
extern void del_aubio_scale(aubio_scale_t *s);
/* pitch mcomb */
aubio_pitchmcomb_t * new_aubio_pitchmcomb(uint_t bufsize, uint_t hopsize, uint_t channels, uint_t samplerate);
smpl_t aubio_pitchmcomb_do (aubio_pitchmcomb_t * p, cvec_t * fftgrain);
-uint_t aubio_pitch_cands(aubio_pitchmcomb_t * p, cvec_t * fftgrain, smpl_t * cands);
void del_aubio_pitchmcomb (aubio_pitchmcomb_t *p);
/* pitch yin */
uint_t channels = 1; /* number of channel */
fvec_t * in = new_fvec (win_s, channels); /* input buffer */
aubio_scale_t * o = new_aubio_scale(0,1,2,3);
- aubio_scale_set(o,0,1,2,3);
+ aubio_scale_set_limits (o,0,1,2,3);
uint_t i = 0;
while (i < 1000) {