ref: e0a9fd203a9252d80d9cd5e09b5d921c6c677000
parent: e15d7d0cdaf0471ebe2ee07dc5a91ab5c1039d2b
author: Paul Brossier <piem@piem.org>
date: Sun Dec 11 18:21:55 EST 2016
examples/aubioonset.c: use seconds for minioi
--- a/doc/aubioonset.txt
+++ b/doc/aubioonset.txt
@@ -52,8 +52,8 @@
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
--- a/examples/aubioonset.c
+++ b/examples/aubioonset.c
@@ -75,7 +75,7 @@
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);
--- a/examples/parse_args.h
+++ b/examples/parse_args.h
@@ -93,7 +93,7 @@
" -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"
@@ -231,7 +231,7 @@
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':