Changeset f1b6aad for plugins


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
  • plugins/puredata/aubiotss~.c

    r28c162c rf1b6aad  
    2121        t_object x_obj;
    2222        t_float thres; 
    23         t_float alpha; 
    24         t_float beta;   
    2523        t_int pos; /*frames%dspblocksize*/
    2624        t_int bufsize;
     
    5553                        //if (!aubio_silence_detection(x->vec, x->threshold2))
    5654                        aubio_pvoc_do  (x->pv,  x->vec, x->fftgrain);
    57                         aubio_tss_set_thres( x->tss, x->thres);
     55                        aubio_tss_set_threshold ( x->tss, x->thres);
    5856                        aubio_tss_do   (x->tss, x->fftgrain, x->ctrans, x->cstead);
    5957                        aubio_pvoc_rdo (x->pvt, x->ctrans, x->trans);
     
    9492        x->bufsize  = 1024; //(bufsize < 64) ? 1024: (bufsize > 16385) ? 16385: bufsize;
    9593        x->hopsize  = x->bufsize / 4;
    96         x->alpha    = 3.;
    97         x->beta     = 4.;
    9894
    9995        x->vec = (fvec_t *)new_fvec(x->hopsize,1);
     
    110106        x->pvs = (aubio_pvoc_t *)new_aubio_pvoc(x->bufsize, x->hopsize, 1);
    111107
    112         x->tss = (aubio_tss_t *)new_aubio_tss(x->thres, x->alpha, x->beta,
    113                         x->bufsize, x->hopsize, 1);
     108        x->tss = (aubio_tss_t *)new_aubio_tss(x->bufsize, x->hopsize, 1);
    114109
    115110        floatinlet_new (&x->x_obj, &x->thres);
Note: See TracChangeset for help on using the changeset viewer.