Ignore:
Timestamp:
Dec 7, 2013, 12:14:50 AM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
44e94f3c
Parents:
cc6b221
Message:

examples/: move parse_args to parse_args.h, clean up, remove lash and old frames_delay

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubioonset.c

    rcc6b221 r1b25a70  
    2020
    2121#include "utils.h"
     22#define PROG_HAS_ONSET
     23#include "parse_args.h"
    2224
    2325uint_t pos = 0; /*frames%dspblocksize*/
     
    6971
    7072int main(int argc, char **argv) {
    71   frames_delay = 3;
    7273  examples_common_init(argc,argv);
    7374
    74   o = new_aubio_onset (onset_mode, buffer_size, overlap_size, samplerate);
    75   if (threshold != 0.) aubio_onset_set_threshold (o, threshold);
     75  o = new_aubio_onset (onset_method, buffer_size, overlap_size, samplerate);
     76  if (onset_threshold != 0.) aubio_onset_set_threshold (o, onset_threshold);
    7677  onset = new_fvec (1);
    7778
Note: See TracChangeset for help on using the changeset viewer.