Changeset 42c3dc0 for src


Ignore:
Timestamp:
Nov 2, 2015, 11:06:55 PM (9 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:
810b3b6
Parents:
5f5edc1
Message:

src/tempo/tempo.{c,h}: add _get_period and _get_period_s

Location:
src/tempo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/tempo/tempo.c

    r5f5edc1 r42c3dc0  
    226226}
    227227
     228smpl_t aubio_tempo_get_period (aubio_tempo_t *o)
     229{
     230  return aubio_beattracking_get_period (o->bt);
     231}
     232
     233smpl_t aubio_tempo_get_period_s (aubio_tempo_t *o)
     234{
     235  return aubio_beattracking_get_period_s (o->bt);
     236}
     237
    228238smpl_t aubio_tempo_get_confidence(aubio_tempo_t *o) {
    229239  return aubio_beattracking_get_confidence(o->bt);
  • src/tempo/tempo.h

    r5f5edc1 r42c3dc0  
    122122smpl_t aubio_tempo_get_threshold(aubio_tempo_t * o);
    123123
     124/** get current beat period in samples
     125
     126  \param bt beat tracking object
     127
     128  Returns the currently observed period, in samples, or 0 if no consistent
     129  value is found.
     130
     131*/
     132smpl_t aubio_tempo_get_period (aubio_tempo_t * bt);
     133
     134/** get current beat period in seconds
     135
     136  \param bt beat tracking object
     137
     138  Returns the currently observed period, in seconds, or 0 if no consistent
     139  value is found.
     140
     141*/
     142smpl_t aubio_tempo_get_period_s (aubio_tempo_t * bt);
     143
    124144/** get current tempo
    125145
Note: See TracChangeset for help on using the changeset viewer.