values imply more onsets detected. Increasing this threshold should reduce
the number of incorrect detections. Defaults to 0.3.
- -M, --minioi value Set the minimum inter-onset interval, in millisecond,
- the shortest interval between two consecutive onsets. Defaults to 12.
+ -M, --minioi value Set the minimum inter-onset interval, in seconds, the
+ shortest interval between two consecutive onsets. Defaults to 0.020
-s, --silence sil Set the silence threshold, in dB, under which the onset
will not be detected. A value of -20.0 would eliminate most onsets but the
if (silence_threshold != -90.)
aubio_onset_set_silence (o, silence_threshold);
if (onset_minioi != 0.)
- aubio_onset_set_minioi_ms (o, onset_minioi);
+ aubio_onset_set_minioi_s (o, onset_minioi);
onset = new_fvec (1);
" -t --onset-threshold set onset detection threshold\n"
" a value between 0.1 (more detections) and 1 (less); default=0.3\n"
" -M --minioi set minimum inter-onset interval\n"
- " a value in millisecond; default=12.\n"
+ " a value in second; default=0.012\n"
#endif /* PROG_HAS_ONSET */
#ifdef PROG_HAS_PITCH
" -p --pitch select pitch detection algorithm\n"
case 't': /* threshold value for onset */
onset_threshold = (smpl_t) atof (optarg);
break;
- case 'M': /* threshold value for onset */
+ case 'M': /* minimum inter-onset-interval */
onset_minioi = (smpl_t) atof (optarg);
break;
case 'p':