Changeset 102b732
- Timestamp:
- Nov 6, 2005, 12:24:13 PM (19 years ago)
- 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
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tss.c
r197571a r102b732 31 31 smpl_t beta; 32 32 smpl_t parm; 33 smpl_t thrsfact; 33 34 fvec_t *theta1; 34 35 fvec_t *theta2; … … 92 93 } 93 94 95 void aubio_tss_set_thres(aubio_tss_t *o, smpl_t thrs){ 96 o->thrs = thrs; 97 o->parm = thrs*o->thrsfact; 98 } 99 94 100 aubio_tss_t * new_aubio_tss(smpl_t thrs, smpl_t alfa, smpl_t beta, 95 101 uint_t size, uint_t overlap,uint_t channels) … … 98 104 uint_t rsize = size/2+1; 99 105 o->thrs = thrs; 106 o->thrsfact = TWO_PI*overlap/rsize; 100 107 o->alfa = alfa; 101 108 o->beta = beta; 102 o->parm = thrs* TWO_PI*overlap/rsize;109 o->parm = thrs*o->thrsfact; 103 110 o->theta1 = new_fvec(rsize,channels); 104 111 o->theta2 = new_fvec(rsize,channels); -
src/tss.h
r197571a r102b732 38 38 extern void del_aubio_tss(aubio_tss_t *s); 39 39 40 extern void aubio_tss_set_thres(aubio_tss_t *tss, smpl_t thrs); 41 40 42 /** split input into transient and steady states components*/ 41 43 extern 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.