- Timestamp:
- Dec 17, 2016, 12:10:53 PM (8 years ago)
- 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
- Location:
- src/notes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/notes/notes.c
rb6bb265 r17b08e6 116 116 117 117 smpl_t aubio_notes_get_silence(const aubio_notes_t *o) 118 { 119 return aubio_pitch_get_silence(o->pitch); 120 } 121 122 uint_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 131 smpl_t aubio_notes_get_minioi_ms(const aubio_notes_t *o) 118 132 { 119 133 return aubio_pitch_get_silence(o->pitch); -
src/notes/notes.h
rb6bb265 r17b08e6 74 74 \param silence new silence detection threshold 75 75 76 \return 0 on success, non-zero otherwise 77 76 78 */ 77 79 uint_t aubio_notes_set_silence(aubio_notes_t * o, smpl_t silence); … … 86 88 smpl_t aubio_notes_get_silence(const aubio_notes_t * o); 87 89 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 */ 97 smpl_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 */ 107 uint_t aubio_notes_set_minioi_ms (aubio_notes_t *o, smpl_t minioi_ms); 108 88 109 #ifdef __cplusplus 89 110 }
Note: See TracChangeset
for help on using the changeset viewer.