examples/aubionotes.c: add warning for missing options
[aubio.git] / examples / aubionotes.c
index 36179a9..f5f3f1e 100644 (file)
@@ -69,6 +69,21 @@ 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: 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);
 
   // send a last note off