Changeset 1b25a70 for examples/aubionotes.c
- Timestamp:
- Dec 7, 2013, 12:14:50 AM (10 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubionotes.c
rcc6b221 r1b25a70 20 20 21 21 #define AUBIO_UNSTABLE 1 // for fvec_median 22 23 22 #include "utils.h" 23 #define PROG_HAS_PITCH 1 24 #define PROG_HAS_ONSET 1 25 #include "parse_args.h" 24 26 25 27 /* pitch objects */ … … 147 149 examples_common_init(argc,argv); 148 150 149 o = new_aubio_onset (onset_m ode, 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); 151 153 onset = new_fvec (1); 152 154 153 pitchdet = new_aubio_pitch (pitch_m ode, buffer_size * 4,155 pitchdet = new_aubio_pitch (pitch_method, buffer_size * 4, 154 156 overlap_size, samplerate); 155 157 aubio_pitch_set_tolerance (pitchdet, 0.7);
Note: See TracChangeset
for help on using the changeset viewer.