Changeset 82ae9d7


Ignore:
Timestamp:
Oct 3, 2016, 6:41:10 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler, yinfft+
Children:
61a1e5d
Parents:
fe0fa26
Message:

examples/: use PROG_HAS_OUTPUT, add PROG_HAS_SILENCE

Location:
examples
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • examples/aubionotes.c

    rfe0fa26 r82ae9d7  
    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

    rfe0fa26 r82ae9d7  
    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

    rfe0fa26 r82ae9d7  
    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

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

    rfe0fa26 r82ae9d7  
    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

    rfe0fa26 r82ae9d7  
    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.