Changeset ffd10fb for src/notes/notes.h


Ignore:
Timestamp:
Oct 3, 2016, 8:46:46 PM (8 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:
54eba9d
Parents:
61a1e5d
Message:

src/notes/notes.h: add _{get,set}_silence methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/notes/notes.h

    r61a1e5d rffd10fb  
    5252
    5353  \param o note detection object as returned by new_aubio_notes()
    54   \param in input signal of size [hop_size]
    55   \param out output notes of size [3] ? FIXME
     54  \param input input signal of size [hop_size]
     55  \param output output notes, fvec of length 3
     56
     57  The notes output is a vector of length 3 containing:
     58   - 0. the midi note value, or 0 if no note was found
     59   - 1. the note velocity
     60   - 2. the midi note to turn off
    5661
    5762*/
    5863void aubio_notes_do (aubio_notes_t *o, const fvec_t * input, fvec_t * output);
     64
     65/** set notes detection silence threshold
     66
     67  \param o notes detection object as returned by new_aubio_notes()
     68  \param silence new silence detection threshold
     69
     70*/
     71uint_t aubio_notes_set_silence(aubio_notes_t * o, smpl_t silence);
     72
     73/** get notes detection silence threshold
     74
     75  \param o notes detection object as returned by new_aubio_notes()
     76
     77  \return current silence threshold
     78
     79*/
     80smpl_t aubio_notes_get_silence(const aubio_notes_t * o);
    5981
    6082#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.