Changeset d84d19e for src/spectral


Ignore:
Timestamp:
Sep 25, 2009, 4:20:27 AM (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:
ff9d00c
Parents:
e4284c9
Message:

src/mathutils.{c,h}: change prototype from aubio_window to new_aubio_window, allocating an fvec, use new function everywhere

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/phasevoc.c

    re4284c9 rd84d19e  
    3535  fvec_t * data;      /** current input grain [win_s] */
    3636  fvec_t * dataold;   /** last input frame [win_s-hop_s] */
    37   smpl_t * w;         /** grain window [win_s] */
     37  fvec_t * w;         /** grain window [win_s] */
    3838};
    3939
     
    5454        datanew->data[i],pv->win_s,pv->hop_s);
    5555    /* windowing */
    56     for (j=0; j<pv->win_s; j++) pv->data->data[i][j] *= pv->w[j];
     56    fvec_weight(pv->data, pv->w);
    5757  }
    5858  /* shift */
     
    9696  pv->dataold  = new_fvec  (win_s-hop_s, channels);
    9797  pv->synthold = new_fvec (win_s-hop_s, channels);
    98   pv->w        = AUBIO_ARRAY(smpl_t,win_s);
    99   aubio_window(pv->w,win_s,aubio_win_hanningz);
     98  pv->w        = new_aubio_window (win_s, aubio_win_hanningz);
    10099
    101100  pv->channels = channels;
     
    111110  del_fvec(pv->dataold);
    112111  del_fvec(pv->synthold);
     112  del_fvec(pv->w);
    113113  del_aubio_fft(pv->fft);
    114   AUBIO_FREE(pv->w);
    115114  AUBIO_FREE(pv);
    116115}
Note: See TracChangeset for help on using the changeset viewer.