Changeset f1b6aad for src/spectral/tss.h


Ignore:
Timestamp:
Oct 16, 2009, 4:02:01 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:
6338636
Parents:
28c162c
Message:

src/spectral/tss.c: simplify new_ method, add setters for threshold, alpha, and beta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/tss.h

    r28c162c rf1b6aad  
    2828  transient information in musical audio using multiresolution analysis
    2929  techniques. In Proceedings of the Digital Audio Effects Conference, DAFx-01,
    30   pages 1­5, Limerick, Ireland, 2001.
     30  pages 1--5, Limerick, Ireland, 2001.
     31
     32  Available at http://www.csis.ul.ie/dafx01/proceedings/papers/duxbury.pdf
    3133
    3234*/
     
    3941#endif
    4042
    41 /** TSS object */
     43/** Transient / Steady-state Separation object */
    4244typedef struct _aubio_tss_t aubio_tss_t;
    4345
    4446/** create tss object
    4547
    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
    5150  \param channels number of input channels
    5251
    5352*/
    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);
     53aubio_tss_t *new_aubio_tss (uint_t win_s, uint_t hop_s, uint_t channels);
     54
    5655/** delete tss object
    5756
    58   \param s tss object as returned by new_aubio_tss
     57  \param o tss object as returned by new_aubio_tss()
    5958
    6059*/
    61 void del_aubio_tss(aubio_tss_t *s);
     60void del_aubio_tss (aubio_tss_t * o);
    6261
    63 /** set transient / steady state separation threshold
    64  
    65   \param tss tss object as returned by new_aubio_tss
    66   \param thrs new threshold value
    67 
    68 */
    69 void aubio_tss_set_thres(aubio_tss_t *tss, smpl_t thrs);
    7062/** split input into transient and steady states components
    7163 
    72   \param s tss object as returned by new_aubio_tss
     64  \param o tss object as returned by new_aubio_tss()
    7365  \param input input spectral frame
    7466  \param trans output transient components
     
    7668
    7769*/
    78 void aubio_tss_do(aubio_tss_t *s, cvec_t * input, cvec_t * trans, cvec_t * stead);
     70void 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*/
     79uint_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*/
     87uint_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*/
     95uint_t aubio_tss_set_beta (aubio_tss_t * o, smpl_t beta);
    7996
    8097#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.