From ec45138affa73c6dbdc88a914b2388b66eee086d Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 11 Dec 2016 16:49:47 +0100 Subject: [PATCH] examples/aubionotes.c: add warning for missing options --- examples/aubionotes.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/examples/aubionotes.c b/examples/aubionotes.c index 5d2f3a27..f5f3f1ef 100644 --- a/examples/aubionotes.c +++ b/examples/aubionotes.c @@ -69,7 +69,20 @@ int main(int argc, char **argv) { notes = new_aubio_notes ("default", buffer_size, hop_size, samplerate); if (notes == NULL) { ret = 1; goto beach; } - if (onset_minioi != 0.) errmsg ("warning: minioio not supported yet\n"); + if (onset_minioi != 0.) { + errmsg ("warning: onset minioio not supported yet\n"); + //aubio_onset_set_minioi_ms(aubio_notes_get_aubio_onset(o), onset_minioi); + } + if (onset_threshold != 0.) { + errmsg ("warning: onset threshold not supported yet\n"); + //aubio_onset_set_threshold(aubio_notes_get_aubio_onset(o), onset_threshold); + } + if (silence_threshold != -90.) { + if (aubio_notes_set_silence (notes, silence_threshold) != 0) { + errmsg ("failed setting notes silence threshold to %.2f\n", + silence_threshold); + } + } examples_common_process((aubio_process_func_t)process_block, process_print); -- 2.11.0