Changeset 17b08e6 for src/notes/notes.c


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

File:
1 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);
Note: See TracChangeset for help on using the changeset viewer.