Changeset 17b08e6


Ignore:
Timestamp:
Dec 17, 2016, 12:10:53 PM (7 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, sampler, yinfft+
Children:
0b6a8a8
Parents:
b6bb265
Message:

src/notes/notes.h: add aubio_notes_{get,set}_minioi_ms

Location:
src/notes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/notes/notes.c

    rb6bb265 r17b08e6  
    116116
    117117smpl_t aubio_notes_get_silence(const aubio_notes_t *o)
     118{
     119  return aubio_pitch_get_silence(o->pitch);
     120}
     121
     122uint_t aubio_notes_set_minioi_ms (aubio_notes_t *o, smpl_t minioi_ms)
     123{
     124  uint_t err = AUBIO_OK;
     125  if (!o->onset || (aubio_onset_set_minioi_ms(o->onset, minioi_ms) != 0)) {
     126    err = AUBIO_FAIL;
     127  }
     128  return err;
     129}
     130
     131smpl_t aubio_notes_get_minioi_ms(const aubio_notes_t *o)
    118132{
    119133  return aubio_pitch_get_silence(o->pitch);
  • src/notes/notes.h

    rb6bb265 r17b08e6  
    7474  \param silence new silence detection threshold
    7575
     76  \return 0 on success, non-zero otherwise
     77
    7678*/
    7779uint_t aubio_notes_set_silence(aubio_notes_t * o, smpl_t silence);
     
    8688smpl_t aubio_notes_get_silence(const aubio_notes_t * o);
    8789
     90/** get notes detection minimum inter-onset interval, in millisecond
     91
     92  \param o notes detection object as returned by new_aubio_notes()
     93
     94  \return current minimum inter onset interval
     95
     96 */
     97smpl_t aubio_notes_get_minioi_ms(const aubio_notes_t *o);
     98
     99/** set notes detection minimum inter-onset interval, in millisecond
     100
     101  \param o notes detection object as returned by new_aubio_notes()
     102  \param minioi_ms new inter-onset interval
     103
     104  \return 0 on success, non-zero otherwise
     105
     106*/
     107uint_t aubio_notes_set_minioi_ms (aubio_notes_t *o, smpl_t minioi_ms);
     108
    88109#ifdef __cplusplus
    89110}
Note: See TracChangeset for help on using the changeset viewer.