Changeset 3a83821


Ignore:
Timestamp:
Jul 1, 2020, 8:08:51 PM (4 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/cnn, feature/crepe, fix/ffmpeg5, master
Children:
4c9aa80
Parents:
08d07ce (diff), eadb7f6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into feature/timestretch

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • doc/develop.rst

    r08d07ce r3a83821  
    9393.. literalinclude:: ../tests/src/io/test-source.c
    9494   :language: C
    95    :lines: 22-24, 30-32, 34
     95   :lines: 24-26, 30, 32-34
    9696
    9797.. note::
     
    103103.. literalinclude:: ../tests/src/io/test-source.c
    104104   :language: C
    105    :lines: 40-44
     105   :lines: 41-45
    106106
    107107At the end of the processing loop, memory is deallocated:
     
    109109.. literalinclude:: ../tests/src/io/test-source.c
    110110   :language: C
    111    :lines: 55-56
     111   :lines: 55-58
    112112
    113113See the complete example: :download:`test-source.c
     
    127127.. literalinclude:: ../tests/src/spectral/test-phasevoc.c
    128128   :language: C
    129    :lines: 20-37
     129   :lines: 27-44
    130130
    131131Time to clean up the previously allocated memory:
     
    133133.. literalinclude:: ../tests/src/spectral/test-phasevoc.c
    134134   :language: C
    135    :lines: 39-44
     135   :lines: 47-50
    136136
    137137See the complete example: :download:`test-phasevoc.c
  • examples/parse_args.h

    r08d07ce r3a83821  
    2626
    2727extern int verbose;
     28extern int quiet;
    2829// input / output
    2930extern int usejack;
     
    128129#endif /* defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH) */
    129130#endif /* defined(PROG_HAS_JACK) && defined(HAVE_JACK) */
     131      "       -q      --quiet            be quiet\n"
    130132      "       -v      --verbose          be verbose\n"
    131133      "       -h      --help             display this message\n"
     
    142144{
    143145#ifdef HAVE_GETOPT_H
    144   const char *options = "hv"
     146  const char *options = "hvq"
    145147    "i:r:B:H:"
    146148#ifdef PROG_HAS_JACK
     
    174176    {"help",                  0, NULL, 'h'},
    175177    {"verbose",               0, NULL, 'v'},
     178    {"quiet",                 0, NULL, 'q'},
    176179    {"input",                 1, NULL, 'i'},
    177180    {"samplerate",            1, NULL, 'r'},
     
    227230        verbose = 1;
    228231        break;
     232      case 'q':                /* quiet */
     233        quiet = 1;
     234        break;
    229235      case 'j':
    230236        usejack = 1;
  • examples/utils.c

    r08d07ce r3a83821  
    3333
    3434int verbose = 0;
     35int quiet = 0;
    3536int usejack = 0;
    3637// input / output
     
    170171      process_func (input_buffer, output_buffer);
    171172      // print to console if verbose or no output given
    172       if (verbose || sink_uri == NULL) {
     173      if ((verbose || sink_uri == NULL) && !quiet) {
    173174        print();
    174175      }
  • scripts/get_waf.sh

    r08d07ce r3a83821  
    4949popd
    5050
    51 cp -prv $WAFBUILDDIR/waf-$WAFVERSION/waf $PWD
     51cp -prv $WAFBUILDDIR/waf-$WAFVERSION/waf "$PWD"
    5252chmod +x waf
    5353
  • src/aubio_priv.h

    r08d07ce r3a83821  
    237237#define AUBIO_INF(...)               aubio_log(AUBIO_LOG_INF, "AUBIO INFO: " __VA_ARGS__)
    238238#define AUBIO_MSG(...)               aubio_log(AUBIO_LOG_MSG, __VA_ARGS__)
    239 #define AUBIO_DBG(...)               aubio_log(AUBIO_LOG_DBG, __VA_ARGS__)
     239#define _AUBIO_DBG(...)              aubio_log(AUBIO_LOG_DBG, __VA_ARGS__)
    240240#define AUBIO_WRN(...)               aubio_log(AUBIO_LOG_WRN, "AUBIO WARNING: " __VA_ARGS__)
    241241#else
     
    243243#define AUBIO_INF(format, args...)   aubio_log(AUBIO_LOG_INF, "AUBIO INFO: " format , ##args)
    244244#define AUBIO_MSG(format, args...)   aubio_log(AUBIO_LOG_MSG, format , ##args)
    245 #define AUBIO_DBG(format, args...)   aubio_log(AUBIO_LOG_DBG, format , ##args)
     245#define _AUBIO_DBG(format, args...)  aubio_log(AUBIO_LOG_DBG, format , ##args)
    246246#define AUBIO_WRN(format, args...)   aubio_log(AUBIO_LOG_WRN, "AUBIO WARNING: " format, ##args)
     247#endif
     248
     249#ifdef DEBUG
     250#define AUBIO_DBG _AUBIO_DBG
     251#else
     252// disable debug output
     253#ifdef HAVE_C99_VARARGS_MACROS
     254#define AUBIO_DBG(...)               {}
     255#else
     256#define AUBIO_DBG(format, args...)   {}
     257#endif
    247258#endif
    248259
  • wscript

    r08d07ce r3a83821  
    4646                    ' or without (--build-type=debug)' \
    4747                    ' compiler opimizations [default: release]')
     48    ctx.add_option('--debug', action = 'store_const',
     49            dest = 'build_type', const = 'debug',
     50            help = 'build in debug mode (see --build-type)')
    4851    add_option_enable_disable(ctx, 'fftw3f', default = False,
    4952            help_str = 'compile with fftw3f instead of ooura (recommended)',
Note: See TracChangeset for help on using the changeset viewer.