Changeset f1b6aad for src/spectral/tss.h
- Timestamp:
- Oct 16, 2009, 4:02:01 AM (15 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:
- 6338636
- Parents:
- 28c162c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/tss.h
r28c162c rf1b6aad 28 28 transient information in musical audio using multiresolution analysis 29 29 techniques. In Proceedings of the Digital Audio Effects Conference, DAFx-01, 30 pages 15, Limerick, Ireland, 2001. 30 pages 1--5, Limerick, Ireland, 2001. 31 32 Available at http://www.csis.ul.ie/dafx01/proceedings/papers/duxbury.pdf 31 33 32 34 */ … … 39 41 #endif 40 42 41 /** T SSobject */43 /** Transient / Steady-state Separation object */ 42 44 typedef struct _aubio_tss_t aubio_tss_t; 43 45 44 46 /** create tss object 45 47 46 \param thrs separation threshold 47 \param alfa alfa parameter 48 \param beta beta parameter 49 \param size buffer size 50 \param overlap step size 48 \param win_s buffer size 49 \param hop_s step size 51 50 \param channels number of input channels 52 51 53 52 */ 54 aubio_tss_t * new_aubio_tss(smpl_t thrs, smpl_t alfa, smpl_t beta,55 uint_t win_s, uint_t hop_s, uint_t channels); 53 aubio_tss_t *new_aubio_tss (uint_t win_s, uint_t hop_s, uint_t channels); 54 56 55 /** delete tss object 57 56 58 \param s tss object as returned by new_aubio_tss57 \param o tss object as returned by new_aubio_tss() 59 58 60 59 */ 61 void del_aubio_tss (aubio_tss_t *s);60 void del_aubio_tss (aubio_tss_t * o); 62 61 63 /** set transient / steady state separation threshold64 65 \param tss tss object as returned by new_aubio_tss66 \param thrs new threshold value67 68 */69 void aubio_tss_set_thres(aubio_tss_t *tss, smpl_t thrs);70 62 /** split input into transient and steady states components 71 63 72 \param s tss object as returned by new_aubio_tss64 \param o tss object as returned by new_aubio_tss() 73 65 \param input input spectral frame 74 66 \param trans output transient components … … 76 68 77 69 */ 78 void aubio_tss_do(aubio_tss_t *s, cvec_t * input, cvec_t * trans, cvec_t * stead); 70 void aubio_tss_do (aubio_tss_t * o, cvec_t * input, cvec_t * trans, 71 cvec_t * stead); 72 73 /** set transient / steady state separation threshold 74 75 \param o tss object as returned by new_aubio_tss() 76 \param thrs new threshold value 77 78 */ 79 uint_t aubio_tss_set_threshold (aubio_tss_t * o, smpl_t thrs); 80 81 /** set parameter a, defaults to 3 82 83 \param o tss object as returned by new_aubio_tss() 84 \param alpha new value for alpha parameter 85 86 */ 87 uint_t aubio_tss_set_alpha (aubio_tss_t * o, smpl_t alpha); 88 89 /** set parameter b, defaults to 3 90 91 \param o tss object as returned by new_aubio_tss() 92 \param beta new value for beta parameter 93 94 */ 95 uint_t aubio_tss_set_beta (aubio_tss_t * o, smpl_t beta); 79 96 80 97 #ifdef __cplusplus
Note: See TracChangeset
for help on using the changeset viewer.