Changeset 3684ab4 for tests/src/temporal/test-resampler.c
- Timestamp:
- Mar 3, 2013, 7:40:05 PM (12 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:
- 2fcb973
- Parents:
- 9547247
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/temporal/test-resampler.c
r9547247 r3684ab4 1 #include <stdio.h>2 1 #include <aubio.h> 3 2 4 int 5 main () 3 int main () 6 4 { 7 /* allocate some memory */ 8 uint_t win_s = 1024; /* window size */ 5 uint_t win_s = 1024; // window size 9 6 smpl_t ratio = 0.5; 10 fvec_t *in = new_fvec (win_s); /* input buffer */11 fvec_t *out = new_fvec ((uint_t) (win_s * ratio)); /* input buffer */7 fvec_t *in = new_fvec (win_s); // input buffer 8 fvec_t *out = new_fvec ((uint_t) (win_s * ratio)); // output buffer 12 9 aubio_resampler_t *o = new_aubio_resampler (0.5, 0); 13 10 uint_t i = 0;
Note: See TracChangeset
for help on using the changeset viewer.