Changeset 3da8187 for examples/aubiopitch.c
- Timestamp:
- Dec 7, 2013, 5:22:21 AM (11 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:
- 61ecd1a
- Parents:
- 466dff3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubiopitch.c
r466dff3 r3da8187 21 21 #include "utils.h" 22 22 #define PROG_HAS_PITCH 1 23 #define PROG_HAS_OUTPUT 1 24 #define PROG_HAS_JACK 1 23 25 #include "parse_args.h" 24 26 … … 33 35 smpl_t freq = fvec_read_sample(pitch, 0); 34 36 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); 41 43 } 42 44
Note: See TracChangeset
for help on using the changeset viewer.