Changeset 1437b5c


Ignore:
Timestamp:
Nov 28, 2016, 4:16:20 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
sampler
Children:
7e8b276
Parents:
5ee8dd3
git-author:
Paul Brossier <piem@piem.org> (10/03/16 18:41:10)
git-committer:
Paul Brossier <piem@piem.org> (11/28/16 16:16:20)
Message:

examples/: use PROG_HAS_OUTPUT, add PROG_HAS_SILENCE

Location:
examples
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • examples/aubionotes.c

    r5ee8dd3 r1437b5c  
    2222#define PROG_HAS_PITCH 1
    2323#define PROG_HAS_ONSET 1
     24#define PROG_HAS_SILENCE 1
    2425#define PROG_HAS_JACK 1
    2526// TODO add PROG_HAS_OUTPUT
  • examples/aubioonset.c

    r5ee8dd3 r1437b5c  
    2222#define PROG_HAS_ONSET 1
    2323#define PROG_HAS_OUTPUT 1
     24#define PROG_HAS_SILENCE 1
    2425#define PROG_HAS_JACK 1
    2526#include "parse_args.h"
  • examples/aubiopitch.c

    r5ee8dd3 r1437b5c  
    2222#define PROG_HAS_PITCH 1
    2323#define PROG_HAS_OUTPUT 1
     24#define PROG_HAS_SILENCE 1
    2425#define PROG_HAS_JACK 1
    2526#include "parse_args.h"
  • examples/aubioquiet.c

    r5ee8dd3 r1437b5c  
    2020
    2121#include "utils.h"
     22#define PROG_HAS_SILENCE 1
    2223#include "parse_args.h"
    2324
  • examples/aubiotrack.c

    r5ee8dd3 r1437b5c  
    2222#define PROG_HAS_TEMPO 1
    2323#define PROG_HAS_ONSET 1
     24#define PROG_HAS_SILENCE 1
    2425#define PROG_HAS_OUTPUT 1
    2526#define PROG_HAS_JACK 1
  • examples/parse_args.h

    r5ee8dd3 r1437b5c  
    101101      "                 (yin, yinfft only) a value between 0.1 and 0.7; default=0.3\n"
    102102#endif /* PROG_HAS_PITCH */
     103#ifdef PROG_HAS_SILENCE
    103104      "       -s      --silence          select silence threshold\n"
    104105      "                 a value in dB, for instance -70, or -100; default=-90\n"
     106#endif /* PROG_HAS_SILENCE */
    105107      "       -T      --time-format      select time values output format\n"
    106108      "                 (samples, ms, seconds) default=seconds\n"
     
    110112      "       -f      --force-overwrite  overwrite output file if needed\n"
    111113      "                 do not fail if output file already exists\n"
    112 #endif
     114#endif /* PROG_HAS_OUTPUT */
    113115#ifdef PROG_HAS_JACK
    114116      "       -j      --jack             use Jack\n"
    115 #endif
     117#endif /* PROG_HAS_JACK */
    116118      "       -v      --verbose          be verbose\n"
    117119      "       -h      --help             display this message\n"
     
    143145#endif /* PROG_HAS_PITCH */
    144146    "T:"
    145     "s:mf";
     147#ifdef PROG_HAS_SILENCE
     148    "s:"
     149#endif /* PROG_HAS_SILENCE */
     150#ifdef PROG_HAS_OUTPUT
     151    "mf"
     152#endif /* PROG_HAS_OUTPUT */
     153    ;
    146154  int next_option;
    147155  struct option long_options[] = {
     
    167175    {"pitch-tolerance",       1, NULL, 'l'},
    168176#endif /* PROG_HAS_PITCH */
     177#ifdef PROG_HAS_SILENCE
    169178    {"silence",               1, NULL, 's'},
     179#endif /* PROG_HAS_SILENCE */
    170180    {"time-format",           1, NULL, 'T'},
     181#ifdef PROG_HAS_OUTPUT
    171182    {"mix-input",             0, NULL, 'm'},
    172183    {"force-overwrite",       0, NULL, 'f'},
     184#endif /* PROG_HAS_OUTPUT */
    173185    {NULL,                    0, NULL, 0}
    174186  };
Note: See TracChangeset for help on using the changeset viewer.