Changeset 32082e5


Ignore:
Timestamp:
Dec 7, 2013, 8:35:58 PM (10 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:
a6e2e5f
Parents:
fd46d1e
Message:

src/utils/hist.{c,h}: flow/fhig, now ilow/ihig

Location:
src/utils
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/utils/hist.c

    rfd46d1e r32082e5  
    3939 * Object creation/deletion calls
    4040 */
    41 aubio_hist_t * new_aubio_hist (smpl_t ilow, smpl_t ihig, uint_t nelems){
     41aubio_hist_t * new_aubio_hist (smpl_t flow, smpl_t fhig, uint_t nelems){
    4242  aubio_hist_t * s = AUBIO_NEW(aubio_hist_t);
    43   smpl_t step = (ihig-ilow)/(smpl_t)(nelems);
     43  smpl_t step = (fhig-flow)/(smpl_t)(nelems);
    4444  smpl_t accum = step;
    4545  uint_t i;
     
    4848  s->cent = new_fvec(nelems);
    4949
    50   /* use scale to map ilow/ihig -> 0/nelems */
    51   s->scaler = new_aubio_scale(ilow,ihig,0,nelems);
     50  /* use scale to map flow/fhig -> 0/nelems */
     51  s->scaler = new_aubio_scale(flow,fhig,0,nelems);
    5252  /* calculate centers now once */
    53   s->cent->data[0] = ilow + 0.5 * step;
     53  s->cent->data[0] = flow + 0.5 * step;
    5454  for (i=1; i < s->nelems; i++, accum+=step )
    5555    s->cent->data[i] = s->cent->data[0] + accum;
  • src/utils/hist.h

    rfd46d1e r32082e5  
    3737
    3838/** histogram creation
    39  * \param flow minimum input
    40  * \param fhig maximum input
    41  * \param nelems number of histogram columns
    42  */
     39
     40  \param flow minimum input
     41  \param fhig maximum input
     42  \param nelems number of histogram columns
     43
     44*/
    4345aubio_hist_t * new_aubio_hist(smpl_t flow, smpl_t fhig, uint_t nelems);
    4446/** histogram deletion */
Note: See TracChangeset for help on using the changeset viewer.