Changeset e34b010 for src


Ignore:
Timestamp:
Oct 5, 2007, 5:10:56 PM (17 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:
647a2d8, 6bec1ed
Parents:
203c551
Message:

beattracking.{c,h},tempo.{c,h}: add aubio_beattracking_get_confidence

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/beattracking.c

    r203c551 re34b010  
    461461        }
    462462}
     463
     464smpl_t aubio_beattracking_get_confidence(aubio_beattracking_t * bt) {
     465        if (bt->gp) return vec_max(bt->acfout);
     466        else return 0.;
     467}
  • src/beattracking.h

    r203c551 re34b010  
    6969*/
    7070smpl_t aubio_beattracking_get_bpm(aubio_beattracking_t * bt);
     71/** get current tempo confidence
     72
     73  \param bt beat tracking object
     74
     75  Returns the confidence with which the tempo has been observed, 0 if no
     76  consistent value is found.
     77
     78*/
     79smpl_t aubio_beattracking_get_confidence(aubio_beattracking_t * bt);
    7180/** delete beat tracking object
    7281
  • src/tempo.c

    r203c551 re34b010  
    128128}
    129129
     130smpl_t aubio_tempo_get_confidence(aubio_tempo_t *o) {
     131  return aubio_beattracking_get_confidence(o->bt);
     132}
     133
    130134void del_aubio_tempo (aubio_tempo_t *o)
    131135{
  • src/tempo.h

    r203c551 re34b010  
    5959smpl_t aubio_tempo_get_bpm(aubio_tempo_t * bt);
    6060
     61/** get current tempo confidence
     62
     63  \param bt beat tracking object
     64
     65  Returns the confidence with which the tempo has been observed, 0 if no
     66  consistent value is found.
     67
     68*/
     69smpl_t aubio_tempo_get_confidence(aubio_tempo_t * bt);
     70
    6171/** delete tempo detection object */
    6272void del_aubio_tempo(aubio_tempo_t * o);
Note: See TracChangeset for help on using the changeset viewer.