Changeset fa0ef3b for src


Ignore:
Timestamp:
Mar 26, 2017, 4:21:48 PM (8 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, sampler
Children:
fa3edc6
Parents:
b669066
Message:

src/spectral/awhitening.h: add _set_floor/_get_floor, improve documentation

Location:
src/spectral
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/awhitening.c

    rb669066 rfa0ef3b  
    9494}
    9595
     96uint_t
     97aubio_spectral_whitening_set_floor (aubio_spectral_whitening_t *o, smpl_t floor)
     98{
     99  o->floor = floor;
     100  return AUBIO_OK;
     101}
     102
     103smpl_t aubio_spectral_whitening_get_floor (aubio_spectral_whitening_t *o)
     104{
     105  return o->floor;
     106}
     107
    96108void
    97109aubio_spectral_whitening_reset (aubio_spectral_whitening_t * o)
  • src/spectral/awhitening.h

    rb669066 rfa0ef3b  
    8181
    8282  \param o spectral whitening object as returned by new_aubio_spectral_whitening()
    83   \param relax_time relaxation time in seconds
     83  \param relax_time relaxation time in seconds between 20 and 500, defaults 250
    8484
    8585  */
     
    9595smpl_t aubio_spectral_whitening_get_relax_time (aubio_spectral_whitening_t * o);
    9696
     97/** set floor for spectral whitening
     98
     99  \param o spectral whitening object as returned by new_aubio_spectral_whitening()
     100  \param floor value (typically between 1.e-6 and .2, defaults to 1.e-4)
     101
     102  */
     103uint_t aubio_spectral_whitening_set_floor (aubio_spectral_whitening_t * o,
     104    smpl_t floor);
     105
     106/** get floor of spectral whitening
     107
     108  \param o spectral whitening object as returned by new_aubio_spectral_whitening()
     109  \return floor value
     110
     111*/
     112smpl_t aubio_spectral_whitening_get_floor (aubio_spectral_whitening_t * o);
     113
    97114/** deletion of a spectral whitening
    98115
Note: See TracChangeset for help on using the changeset viewer.