From: Paul Brossier Date: Thu, 12 Jan 2017 21:07:37 +0000 (+0100) Subject: examples/parse_args.h: miditap only for aubiotrack and aubioonset X-Git-Tag: 0.4.5~108^2~3 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=75435f070e4f7685645996ed744215359cbed639;ds=sidebyside examples/parse_args.h: miditap only for aubiotrack and aubioonset --- diff --git a/examples/parse_args.h b/examples/parse_args.h index 8b246f99..191f2e90 100644 --- a/examples/parse_args.h +++ b/examples/parse_args.h @@ -117,8 +117,10 @@ void usage (FILE * stream, int exit_code) #endif /* PROG_HAS_OUTPUT */ #ifdef PROG_HAS_JACK " -j --jack use Jack\n" +#if defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH) " -n --miditap-note MIDI note\n" " -V --miditap-velo MIDI velocity\n" +#endif /* defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH) */ #endif /* PROG_HAS_JACK */ " -v --verbose be verbose\n" " -h --help display this message\n" @@ -137,7 +139,10 @@ parse_args (int argc, char **argv) const char *options = "hv" "i:r:B:H:" #ifdef PROG_HAS_JACK - "jn:V:" + "j" +#if defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH) + "N:V:" +#endif /* defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH) */ #endif /* PROG_HAS_JACK */ #ifdef PROG_HAS_OUTPUT "o:" @@ -166,8 +171,10 @@ parse_args (int argc, char **argv) {"hopsize", 1, NULL, 'H'}, #ifdef PROG_HAS_JACK {"jack", 0, NULL, 'j'}, +#if defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH) {"miditap-note", 1, NULL, 'n'}, {"miditap-velo", 1, NULL, 'V'}, +#endif /* PROG_HAS_ONSET !PROG_HAS_PITCH */ #endif /* PROG_HAS_JACK */ #ifdef PROG_HAS_OUTPUT {"output", 1, NULL, 'o'},