Changeset 102b732


Ignore:
Timestamp:
Nov 6, 2005, 12:24:13 PM (19 years ago)
Author:
Paul Brossier <piem@altern.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:
d45520a
Parents:
197571a
Message:

added aubio_tss_set_thres function
added aubio_tss_set_thres function

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/tss.c

    r197571a r102b732  
    3131  smpl_t beta;
    3232  smpl_t parm;
     33  smpl_t thrsfact;
    3334  fvec_t *theta1;
    3435  fvec_t *theta2;
     
    9293}
    9394
     95void aubio_tss_set_thres(aubio_tss_t *o, smpl_t thrs){
     96        o->thrs = thrs;
     97        o->parm = thrs*o->thrsfact;
     98}
     99
    94100aubio_tss_t * new_aubio_tss(smpl_t thrs, smpl_t alfa, smpl_t beta,
    95101    uint_t size, uint_t overlap,uint_t channels)
     
    98104  uint_t rsize = size/2+1;
    99105  o->thrs = thrs;
     106  o->thrsfact = TWO_PI*overlap/rsize;
    100107  o->alfa = alfa;       
    101108  o->beta = beta;       
    102   o->parm = thrs*TWO_PI*overlap/rsize;
     109  o->parm = thrs*o->thrsfact;
    103110  o->theta1 = new_fvec(rsize,channels);
    104111  o->theta2 = new_fvec(rsize,channels);
  • src/tss.h

    r197571a r102b732  
    3838extern void del_aubio_tss(aubio_tss_t *s);
    3939
     40extern void aubio_tss_set_thres(aubio_tss_t *tss, smpl_t thrs);
     41
    4042/** split input into transient and steady states components*/
    4143extern void aubio_tss_do(aubio_tss_t *s, cvec_t * input, cvec_t * trans, cvec_t * stead);
Note: See TracChangeset for help on using the changeset viewer.