- Timestamp:
- Oct 8, 2009, 8:07:20 PM (15 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:
- f162cf9
- Parents:
- 8040cca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/test-pitchmcomb.c
r8040cca re5757cf 5 5 uint_t win_s = 1024; /* window size */ 6 6 uint_t hop_s = win_s/4; /* hop size */ 7 uint_t samplerate = 44100;8 7 uint_t channels = 1; /* number of channel */ 9 8 cvec_t * in = new_cvec (win_s, channels); /* input buffer */ 10 aubio_pitchmcomb_t * o = new_aubio_pitchmcomb( 11 win_s, hop_s, channels, samplerate ); 9 fvec_t * out = new_fvec (1, channels); /* input buffer */ 10 11 aubio_pitchmcomb_t * o = new_aubio_pitchmcomb(win_s, hop_s, channels); 12 12 uint_t i = 0; 13 13 14 14 while (i < 1000) { 15 aubio_pitchmcomb_do (o,in );15 aubio_pitchmcomb_do (o,in, out); 16 16 i++; 17 17 }; … … 19 19 del_aubio_pitchmcomb(o); 20 20 del_cvec(in); 21 del_fvec(out); 21 22 aubio_cleanup(); 22 23
Note: See TracChangeset
for help on using the changeset viewer.