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);