Changeset 155cc10 for examples/aubiopitch.c
- Timestamp:
- Mar 10, 2017, 2:26:32 PM (7 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, sampler
- Children:
- ee8a57c
- Parents:
- 00d0275 (diff), 67b6618 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubiopitch.c
r00d0275 r155cc10 22 22 #define PROG_HAS_PITCH 1 23 23 #define PROG_HAS_OUTPUT 1 24 #define PROG_HAS_SILENCE 1 24 25 #define PROG_HAS_JACK 1 25 26 #include "parse_args.h" … … 52 53 53 54 int main(int argc, char **argv) { 55 int ret = 0; 54 56 55 57 buffer_size = 2048; … … 65 67 66 68 o = new_aubio_pitch (pitch_method, buffer_size, hop_size, samplerate); 69 if (o == NULL) { ret = 1; goto beach; } 67 70 if (pitch_tolerance != 0.) 68 71 aubio_pitch_set_tolerance (o, pitch_tolerance); … … 83 86 del_fvec (pitch); 84 87 88 beach: 85 89 examples_common_del(); 86 return 0;90 return ret; 87 91 } 88
Note: See TracChangeset
for help on using the changeset viewer.