Changeset 0bbdbfd


Ignore:
Timestamp:
Nov 5, 2009, 12:29:53 AM (10 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
af4aeca
Parents:
998d4d6
Message:

src/onset/onset.{c,h}: minimum inter-onset-interval in millisecond

Location:
src/onset
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/onset/onset.c

    r998d4d6 r0bbdbfd  
    9191
    9292uint_t aubio_onset_set_minioi(aubio_onset_t * o, uint_t minioi) {
    93   o->minioi = minioi;
     93  o->minioi = FLOOR(minioi / 1000. * o->samplerate / o->hop_size);
    9494  return AUBIO_OK;
    9595}
  • src/onset/onset.h

    r998d4d6 r0bbdbfd  
    8585
    8686  \param o onset detection object as returned by new_aubio_onset
    87   \param minioi minimum number of frames between onsets (in multiple of
    88   hop_size/samplerare)
     87  \param minioi minimum interval between two consecutive onsets (in
     88  milliseconds)
    8989
    9090*/
Note: See TracChangeset for help on using the changeset viewer.