Ignore:
Timestamp:
Dec 7, 2013, 12:14:50 AM (10 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:
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/aubionotes.c

    rcc6b221 r1b25a70  
    2020
    2121#define AUBIO_UNSTABLE 1 // for fvec_median
    22 
    2322#include "utils.h"
     23#define PROG_HAS_PITCH 1
     24#define PROG_HAS_ONSET 1
     25#include "parse_args.h"
    2426
    2527/* pitch objects */
     
    147149  examples_common_init(argc,argv);
    148150
    149   o = new_aubio_onset (onset_mode, buffer_size, overlap_size, samplerate);
    150   if (threshold != 0.) aubio_onset_set_threshold (o, threshold);
     151  o = new_aubio_onset (onset_method, buffer_size, overlap_size, samplerate);
     152  if (onset_threshold != 0.) aubio_onset_set_threshold (o, onset_threshold);
    151153  onset = new_fvec (1);
    152154
    153   pitchdet = new_aubio_pitch (pitch_mode, buffer_size * 4,
     155  pitchdet = new_aubio_pitch (pitch_method, buffer_size * 4,
    154156          overlap_size, samplerate);
    155157  aubio_pitch_set_tolerance (pitchdet, 0.7);
Note: See TracChangeset for help on using the changeset viewer.