Changeset deb1fd4 for src/tempo


Ignore:
Timestamp:
Jan 29, 2015, 4:25:38 PM (10 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:
fdeba11
Parents:
9be906a
Message:

src/tempo/tempo.h: add aubio_tempo_get_silence and aubio_tempo_get_threshold

Location:
src/tempo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/tempo/tempo.c

    r9be906a rdeb1fd4  
    151151}
    152152
     153smpl_t aubio_tempo_get_silence(aubio_tempo_t * o) {
     154  return o->silence;
     155}
     156
    153157uint_t aubio_tempo_set_threshold(aubio_tempo_t * o, smpl_t threshold) {
    154158  o->threshold = threshold;
    155159  aubio_peakpicker_set_threshold(o->pp, o->threshold);
    156160  return AUBIO_OK;
     161}
     162
     163smpl_t aubio_tempo_get_threshold(aubio_tempo_t * o) {
     164  return o->threshold;
    157165}
    158166
  • src/tempo/tempo.h

    r9be906a rdeb1fd4  
    9494uint_t aubio_tempo_set_silence(aubio_tempo_t * o, smpl_t silence);
    9595
     96/** get tempo detection silence threshold
     97
     98  \param o tempo detection object as returned by new_aubio_tempo()
     99
     100  \return current silence threshold
     101
     102*/
     103smpl_t aubio_tempo_get_silence(aubio_tempo_t * o);
     104
    96105/** set tempo detection peak picking threshold
    97106
     
    103112*/
    104113uint_t aubio_tempo_set_threshold(aubio_tempo_t * o, smpl_t threshold);
     114
     115/** get tempo peak picking threshold
     116
     117  \param o tempo detection object as returned by new_aubio_tempo()
     118
     119  \return current tempo detection threshold
     120
     121*/
     122smpl_t aubio_tempo_get_threshold(aubio_tempo_t * o);
    105123
    106124/** get current tempo
Note: See TracChangeset for help on using the changeset viewer.