ref: 71bc8b0465419b6825921a2576ee6e31e7e15cb0
parent: ed6b3027eb097b8fae9bfba2f749f1ce1efb4d2e
author: Tres Seaver <tseaver@palladion.com>
date: Thu Jan 12 06:38:35 EST 2017
aubioonset: user-set MIDI tap note / velocity values.
--- a/doc/aubioonset.txt
+++ b/doc/aubioonset.txt
@@ -9,7 +9,8 @@
[-O method] [-t thres]
[-T time-format]
[-s sil] [-m] [-f]
- [-j] [-v] [-h]
+ [-j] [-n miditap-note] [-V miditap-velo]
+ [-v] [-h]
DESCRIPTION
@@ -69,6 +70,10 @@
-j, --jack Use Jack input/output. You will need a Jack connection
controller to feed aubio some signal and listen to its output.
+
+ -n, --miditap-note Override note value for MIDI tap. Defaults to 69.
+
+ -V, --miditap-velop Override velocity value for MIDI tap. Defaults to 65.
-h, --help Print a short help message and exit.
--- a/examples/parse_args.h
+++ b/examples/parse_args.h
@@ -117,6 +117,8 @@
#endif /* PROG_HAS_OUTPUT */
#ifdef PROG_HAS_JACK
" -j --jack use Jack\n"
+ " -n --miditap-note MIDI note\n"
+ " -V --miditap-velo MIDI velocity\n"
#endif /* PROG_HAS_JACK */
" -v --verbose be verbose\n"
" -h --help display this message\n"
@@ -135,7 +137,7 @@
const char *options = "hv"
"i:r:B:H:"
#ifdef PROG_HAS_JACK
- "j"
+ "jn:V:"
#endif /* PROG_HAS_JACK */
#ifdef PROG_HAS_OUTPUT
"o:"
@@ -164,6 +166,8 @@
{"hopsize", 1, NULL, 'H'},
#ifdef PROG_HAS_JACK
{"jack", 0, NULL, 'j'},
+ {"miditap-note", 1, NULL, 'n'},
+ {"miditap-velo", 1, NULL, 'V'},
#endif /* PROG_HAS_JACK */
#ifdef PROG_HAS_OUTPUT
{"output", 1, NULL, 'o'},
@@ -206,6 +210,12 @@
break;
case 'j':
usejack = 1;
+ break;
+ case 'n':
+ miditap_note = atoi (optarg);
+ break;
+ case 'V':
+ miditap_velo = atoi (optarg);
break;
case 'i':
source_uri = optarg;