Ignore:
Timestamp:
Dec 7, 2013, 5:22:21 AM (11 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, pitchshift, sampler, timestretch, yinfft+
Children:
61ecd1a
Parents:
466dff3
Message:

examples/: remove -o and -j when unused

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiopitch.c

    r466dff3 r3da8187  
    2121#include "utils.h"
    2222#define PROG_HAS_PITCH 1
     23#define PROG_HAS_OUTPUT 1
     24#define PROG_HAS_JACK 1
    2325#include "parse_args.h"
    2426
     
    3335  smpl_t freq = fvec_read_sample(pitch, 0);
    3436  aubio_wavetable_set_amp ( wavetable, aubio_level_lin (ibuf) );
    35   if (freq != 0.0) {
    36     aubio_wavetable_set_freq ( wavetable, freq );
    37   } else {
    38     aubio_wavetable_set_freq ( wavetable, 0.0 );
    39   }
    40   aubio_wavetable_do (wavetable, obuf, obuf);
     37  aubio_wavetable_set_freq ( wavetable, freq );
     38
     39  if (mix_input)
     40    aubio_wavetable_do (wavetable, ibuf, obuf);
     41  else
     42    aubio_wavetable_do (wavetable, obuf, obuf);
    4143}
    4244
Note: See TracChangeset for help on using the changeset viewer.