Changeset ec45138


Ignore:
Timestamp:
Dec 11, 2016, 4:49:47 PM (4 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, sampler, yinfft+
Children:
c1333cd
Parents:
ab7212f
Message:

examples/aubionotes.c: add warning for missing options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubionotes.c

    rab7212f rec45138  
    7070  if (notes == NULL) { ret = 1; goto beach; }
    7171
    72   if (onset_minioi != 0.) errmsg ("warning: minioio not supported yet\n");
     72  if (onset_minioi != 0.) {
     73    errmsg ("warning: onset minioio not supported yet\n");
     74    //aubio_onset_set_minioi_ms(aubio_notes_get_aubio_onset(o), onset_minioi);
     75  }
     76  if (onset_threshold != 0.) {
     77    errmsg ("warning: onset threshold not supported yet\n");
     78    //aubio_onset_set_threshold(aubio_notes_get_aubio_onset(o), onset_threshold);
     79  }
     80  if (silence_threshold != -90.) {
     81    if (aubio_notes_set_silence (notes, silence_threshold) != 0) {
     82      errmsg ("failed setting notes silence threshold to %.2f\n",
     83          silence_threshold);
     84    }
     85  }
    7386
    7487  examples_common_process((aubio_process_func_t)process_block, process_print);
Note: See TracChangeset for help on using the changeset viewer.