Changeset 0ce97483


Ignore:
Timestamp:
Oct 7, 2009, 11:19:36 PM (15 years ago)
Author:
Paul Brossier <piem@piem.org>
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
Message:

src/utils/scale.c: rename aubio_scale_set to aubio_scale_set_limits

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/utils/hist.c

    r01b8fcc r0ce97483  
    114114
    115115  /* readapt */
    116   aubio_scale_set(s->scaler, ilow, ihig, 0, s->nelems);
     116  aubio_scale_set_limits (s->scaler, ilow, ihig, 0, s->nelems);
    117117
    118118  /* recalculate centers */
  • src/utils/scale.c

    r01b8fcc r0ce97483  
    4040    smpl_t olow, smpl_t ohig) {
    4141  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);
    4343  return s;
    4444}
     
    4848}
    4949
    50 void aubio_scale_set (aubio_scale_t *s, smpl_t ilow, smpl_t ihig,
     50void aubio_scale_set_limits (aubio_scale_t *s, smpl_t ilow, smpl_t ihig,
    5151    smpl_t olow, smpl_t ohig) {
    5252  smpl_t inputrange = ihig - ilow;
  • src/utils/scale.h

    r01b8fcc r0ce97483  
    6969
    7070*/
    71 void aubio_scale_set (aubio_scale_t *s, smpl_t ilow, smpl_t ihig,
     71void aubio_scale_set_limits (aubio_scale_t *s, smpl_t ilow, smpl_t ihig,
    7272    smpl_t olow, smpl_t ohig);
    7373
  • swig/aubio.i

    r01b8fcc r0ce97483  
    176176/* scale */
    177177extern 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);
     178extern void aubio_scale_set_limits (aubio_scale_t *s, smpl_t ilow, smpl_t ihig, smpl_t olow, smpl_t ohig);
    179179extern void aubio_scale_do(aubio_scale_t *s, fvec_t * input);
    180180extern void del_aubio_scale(aubio_scale_t *s);
     
    241241aubio_pitchmcomb_t * new_aubio_pitchmcomb(uint_t bufsize, uint_t hopsize, uint_t channels, uint_t samplerate);
    242242smpl_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);
    244243void del_aubio_pitchmcomb (aubio_pitchmcomb_t *p);
    245244
  • tests/src/test-scale.c

    r01b8fcc r0ce97483  
    77        fvec_t * in       = new_fvec (win_s, channels); /* input buffer */
    88        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);
    1010        uint_t i = 0;
    1111
Note: See TracChangeset for help on using the changeset viewer.