- Timestamp:
- Jul 29, 2017, 5:55:35 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
- Children:
- 7100895
- Parents:
- 34ce715
- Location:
- tests/src
- Files:
-
- 51 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/io/test-sink-multi.c
r34ce715 r986131d 8 8 int main (int argc, char **argv) 9 9 { 10 aubio_init(); 11 10 12 sint_t err = 0; 11 13 … … 70 72 del_aubio_source(i); 71 73 beach_source: 74 75 aubio_cleanup(); 76 72 77 return err; 73 78 } -
tests/src/io/test-sink.c
r34ce715 r986131d 4 4 int main (int argc, char **argv) 5 5 { 6 aubio_init(); 7 6 8 sint_t err = 0; 7 9 … … 55 57 del_fvec(vec); 56 58 beach_fvec: 59 60 aubio_cleanup(); 61 57 62 return err; 58 63 } -
tests/src/io/test-sink_apple_audio-multi.c
r34ce715 r986131d 8 8 int main (int argc, char **argv) 9 9 { 10 aubio_init(); 11 10 12 sint_t err = 0; 11 13 … … 75 77 PRINT_ERR("aubio was not compiled with aubio_sink_apple_audio\n"); 76 78 #endif /* HAVE_SINK_APPLE_AUDIO */ 79 80 aubio_cleanup(); 81 77 82 return err; 78 83 } -
tests/src/io/test-sink_apple_audio.c
r34ce715 r986131d 8 8 int main (int argc, char **argv) 9 9 { 10 aubio_init(); 11 10 12 sint_t err = 0; 11 13 … … 64 66 PRINT_ERR("aubio was not compiled with aubio_source_apple_audio\n"); 65 67 #endif /* HAVE_SINK_APPLE_AUDIO */ 68 69 aubio_cleanup(); 70 66 71 return err; 67 72 } -
tests/src/io/test-sink_sndfile-multi.c
r34ce715 r986131d 8 8 int main (int argc, char **argv) 9 9 { 10 aubio_init(); 11 10 12 sint_t err = 0; 11 13 … … 75 77 PRINT_ERR("aubio was not compiled with aubio_sink_sndfile\n"); 76 78 #endif /* HAVE_SNDFILE */ 79 80 aubio_cleanup(); 81 77 82 return err; 78 83 } -
tests/src/io/test-sink_sndfile.c
r34ce715 r986131d 8 8 int main (int argc, char **argv) 9 9 { 10 aubio_init(); 11 10 12 sint_t err = 0; 11 13 … … 64 66 PRINT_ERR("aubio was not compiled with aubio_source_sndfile\n"); 65 67 #endif /* HAVE_SNDFILE */ 68 69 aubio_cleanup(); 70 66 71 return err; 67 72 } -
tests/src/io/test-sink_wavwrite-multi.c
r34ce715 r986131d 8 8 int main (int argc, char **argv) 9 9 { 10 aubio_init(); 11 10 12 sint_t err = 0; 11 13 … … 75 77 PRINT_ERR("aubio was not compiled with aubio_sink_wavwrite\n"); 76 78 #endif /* HAVE_WAVWRITE */ 79 80 aubio_cleanup(); 81 77 82 return err; 78 83 } -
tests/src/io/test-sink_wavwrite.c
r34ce715 r986131d 8 8 int main (int argc, char **argv) 9 9 { 10 aubio_init(); 11 10 12 sint_t err = 0; 11 13 … … 64 66 PRINT_ERR("aubio was not compiled with aubio_sink_wavwrite\n"); 65 67 #endif /* HAVE_WAVWRITE */ 68 69 aubio_cleanup(); 70 66 71 return err; 67 72 } -
tests/src/io/test-source.c
r34ce715 r986131d 4 4 int main (int argc, char **argv) 5 5 { 6 aubio_init(); 7 6 8 uint_t err = 0; 7 9 if (argc < 2) { … … 56 58 del_aubio_source (s); 57 59 beach: 60 aubio_cleanup(); 58 61 return err; 59 62 } -
tests/src/io/test-source_apple_audio.c
r34ce715 r986131d 8 8 int main (int argc, char **argv) 9 9 { 10 aubio_init(); 11 10 12 uint_t err = 0; 11 13 if (argc < 2) { … … 60 62 PRINT_ERR("aubio was not compiled with aubio_source_apple_audio\n"); 61 63 #endif /* HAVE_SOURCE_APPLE_AUDIO */ 64 65 aubio_cleanup(); 66 62 67 return err; 63 68 } -
tests/src/io/test-source_avcodec.c
r34ce715 r986131d 8 8 int main (int argc, char **argv) 9 9 { 10 aubio_init(); 11 10 12 uint_t err = 0; 11 13 if (argc < 2) { … … 60 62 PRINT_ERR("aubio was not compiled with aubio_source_avcodec\n"); 61 63 #endif /* HAVE_LIBAV */ 64 65 aubio_cleanup(); 66 62 67 return err; 63 68 } -
tests/src/io/test-source_multi.c
r34ce715 r986131d 4 4 int main (int argc, char **argv) 5 5 { 6 aubio_init(); 7 6 8 sint_t err = 0; 7 9 if (argc < 2) { … … 54 56 beach: 55 57 58 aubio_cleanup(); 59 56 60 return err; 57 61 } -
tests/src/io/test-source_seek.c
r34ce715 r986131d 4 4 int main (int argc, char **argv) 5 5 { 6 aubio_init(); 7 6 8 uint_t err = 0; 7 9 if (argc < 2) { … … 89 91 // check that we got about half the frames, with 3 decimals 90 92 assert ( roundf(1.e3 * old_n_frames_1 / old_n_frames_3) / 1.e3 == 2.); 93 94 aubio_cleanup(); 95 91 96 return err; 92 97 } -
tests/src/io/test-source_sndfile.c
r34ce715 r986131d 8 8 int main (int argc, char **argv) 9 9 { 10 aubio_init(); 11 10 12 uint_t err = 0; 11 13 if (argc < 2) { … … 60 62 PRINT_ERR("aubio was not compiled with aubio_source_sndfile\n"); 61 63 #endif /* HAVE_SNDFILE */ 64 65 aubio_cleanup(); 66 62 67 return err; 63 68 } -
tests/src/io/test-source_wavread.c
r34ce715 r986131d 8 8 int main (int argc, char **argv) 9 9 { 10 aubio_init(); 11 10 12 uint_t err = 0; 11 13 if (argc < 2) { … … 61 63 PRINT_ERR("aubio was not compiled with aubio_source_wavread\n"); 62 64 #endif /* HAVE_WAVREAD */ 65 66 aubio_cleanup(); 67 63 68 return err; 64 69 } -
tests/src/onset/test-onset.c
r34ce715 r986131d 4 4 int main (int argc, char **argv) 5 5 { 6 aubio_init(); 7 6 8 uint_t err = 0; 7 9 if (argc < 2) { -
tests/src/pitch/test-pitch.c
r34ce715 r986131d 3 3 int main (void) 4 4 { 5 aubio_init(); 6 5 7 // 1. allocate some memory 6 8 uint_t n = 0; // frame counter -
tests/src/pitch/test-pitchfcomb.c
r34ce715 r986131d 8 8 int main (void) 9 9 { 10 aubio_init(); 10 11 uint_t i = 0; 11 12 uint_t win_s = 1024; // window size -
tests/src/pitch/test-pitchmcomb.c
r34ce715 r986131d 8 8 int main (void) 9 9 { 10 aubio_init(); 11 10 12 uint_t n = 10; // compute n times 11 13 uint_t win_s = 1024; // window size -
tests/src/pitch/test-pitchschmitt.c
r34ce715 r986131d 8 8 int main (void) 9 9 { 10 aubio_init(); 10 11 uint_t n = 10; // compute n times 11 12 uint_t win_s = 1024; // window size -
tests/src/pitch/test-pitchspecacf.c
r34ce715 r986131d 8 8 int main (void) 9 9 { 10 aubio_init(); 11 10 12 uint_t n = 10; // compute n times 11 13 uint_t win_s = 1024; // window size -
tests/src/pitch/test-pitchyin.c
r34ce715 r986131d 8 8 int main (void) 9 9 { 10 aubio_init(); 11 10 12 uint_t n = 10; // compute n times 11 13 uint_t win_s = 1024; // window size -
tests/src/pitch/test-pitchyinfft.c
r34ce715 r986131d 8 8 int main (void) 9 9 { 10 aubio_init(); 11 10 12 uint_t n = 10; // compute n times 11 13 uint_t win_s = 1024; // window size -
tests/src/spectral/test-awhitening.c
r34ce715 r986131d 4 4 int main (int argc, char **argv) 5 5 { 6 aubio_init(); 7 6 8 sint_t err = 0; 7 9 … … 80 82 del_fvec(vec); 81 83 beach_fvec: 84 aubio_cleanup(); 82 85 return err; 83 86 } -
tests/src/spectral/test-fft.c
r34ce715 r986131d 3 3 int main (void) 4 4 { 5 aubio_init(); 6 5 7 int return_code = 0; 6 8 uint_t i, n_iters = 100; // number of iterations … … 44 46 del_cvec(fftgrain); 45 47 del_fvec(out); 48 46 49 aubio_cleanup(); 50 47 51 return return_code; 48 52 } -
tests/src/spectral/test-filterbank.c
r34ce715 r986131d 3 3 int main (void) 4 4 { 5 aubio_init(); 6 5 7 uint_t win_s = 1024; // window size 6 8 uint_t n_filters = 13; // number of filters … … 34 36 del_cvec (in_spec); 35 37 del_fvec (out_filters); 38 36 39 aubio_cleanup (); 37 40 -
tests/src/spectral/test-filterbank_mel.c
r34ce715 r986131d 3 3 int main (void) 4 4 { 5 aubio_init(); 6 5 7 uint_t samplerate = 16000; // samplerate of signal to filter 6 8 uint_t win_s = 512; // fft size … … 33 35 del_cvec (in_spec); 34 36 del_fvec (out_filters); 37 35 38 aubio_cleanup (); 36 39 -
tests/src/spectral/test-mfcc.c
r34ce715 r986131d 3 3 int main (void) 4 4 { 5 aubio_init(); 6 5 7 uint_t win_s = 512; // fft size 6 8 uint_t n_filters = 40; // number of filters … … 25 27 del_cvec (in); 26 28 del_fvec (out); 29 27 30 aubio_cleanup (); 28 31 -
tests/src/spectral/test-phasevoc.c
r34ce715 r986131d 3 3 int main (void) 4 4 { 5 aubio_init(); 6 5 7 uint_t n = 6; // compute n times 6 8 uint_t win_s = 32; // window size … … 42 44 del_fvec(out); 43 45 del_aubio_pvoc(pv); 46 44 47 aubio_cleanup(); 45 48 -
tests/src/spectral/test-specdesc.c
r34ce715 r986131d 3 3 int main (void) 4 4 { 5 aubio_init(); 6 5 7 uint_t win_s = 1024; // window size 6 8 cvec_t *in = new_cvec (win_s); // input buffer … … 39 41 del_cvec (in); 40 42 del_fvec (out); 43 41 44 aubio_cleanup (); 42 45 -
tests/src/spectral/test-tss.c
r34ce715 r986131d 3 3 int main (void) 4 4 { 5 aubio_init(); 6 5 7 uint_t n = 10; // compute n times 6 8 uint_t win_s = 1024; // window size -
tests/src/synth/test-sampler.c
r34ce715 r986131d 4 4 int main (int argc, char **argv) 5 5 { 6 aubio_init(); 7 6 8 sint_t err = 0; 7 9 … … 54 56 del_aubio_sink(sink); 55 57 del_fvec(vec); 58 56 59 aubio_cleanup(); 57 60 -
tests/src/synth/test-wavetable.c
r34ce715 r986131d 4 4 int main (int argc, char **argv) 5 5 { 6 aubio_init(); 7 6 8 sint_t err = 0; 7 9 … … 63 65 del_aubio_sink(sink); 64 66 del_fvec(vec); 67 65 68 aubio_cleanup(); 66 69 -
tests/src/tempo/test-beattracking.c
r34ce715 r986131d 6 6 int main (void) 7 7 { 8 aubio_init(); 9 8 10 uint_t i = 0; 9 11 uint_t win_s = 1024; // window size … … 34 36 del_fvec(in); 35 37 del_fvec(out); 38 36 39 aubio_cleanup(); 37 40 -
tests/src/tempo/test-tempo.c
r34ce715 r986131d 4 4 int main (int argc, char **argv) 5 5 { 6 aubio_init(); 7 6 8 uint_t err = 0; 7 9 if (argc < 2) { … … 57 59 del_fvec(out); 58 60 del_aubio_source(source); 61 59 62 beach: 60 63 aubio_cleanup(); -
tests/src/temporal/test-a_weighting.c
r34ce715 r986131d 3 3 int main (void) 4 4 { 5 5 aubio_init(); 6 6 7 aubio_filter_t * f; 7 8 … … 39 40 del_aubio_filter (f); 40 41 42 aubio_cleanup(); 43 41 44 return 0; 42 45 } -
tests/src/temporal/test-biquad.c
r34ce715 r986131d 3 3 int main (void) 4 4 { 5 aubio_init(); 6 5 7 uint_t win_s = 64; // window size 6 8 … … 29 31 del_fvec(out_vec); 30 32 33 aubio_cleanup(); 34 31 35 return 0; 32 36 } -
tests/src/temporal/test-c_weighting.c
r34ce715 r986131d 3 3 int main (void) 4 4 { 5 aubio_init(); 6 5 7 aubio_filter_t * f; 6 8 … … 38 40 del_aubio_filter (f); 39 41 42 aubio_cleanup(); 43 40 44 return 0; 41 45 } -
tests/src/temporal/test-filter.c
r34ce715 r986131d 3 3 int main (void) 4 4 { 5 aubio_init(); 6 5 7 uint_t win_s = 16; // window size 6 8 uint_t impulse_at = win_s / 2; … … 30 32 del_fvec (out); 31 33 del_aubio_filter (o); 34 32 35 aubio_cleanup (); 33 36 -
tests/src/temporal/test-resampler.c
r34ce715 r986131d 3 3 int main (void) 4 4 { 5 aubio_init(); 6 5 7 uint_t win_s = 1024; // window size 6 8 smpl_t ratio = 0.5; … … 19 21 del_fvec (out); 20 22 23 aubio_cleanup(); 24 21 25 return 0; 22 26 } -
tests/src/test-cvec.c
r34ce715 r986131d 4 4 int main (void) 5 5 { 6 aubio_init(); 7 6 8 uint_t i, window_size = 16; // window size 7 9 cvec_t * complex_vector = new_cvec (window_size); // input buffer … … 45 47 // destroy it 46 48 del_cvec(complex_vector); 49 50 aubio_cleanup(); 51 47 52 return 0; 48 53 } -
tests/src/test-delnull.c
r34ce715 r986131d 7 7 int main (void) 8 8 { 9 aubio_init(); 10 9 11 uint_t return_code = 0; 10 12 fvec_t *f = new_fvec(-12); … … 21 23 return_code = 3; 22 24 } 25 26 aubio_cleanup(); 27 23 28 return return_code; 24 29 } -
tests/src/test-fmat.c
r34ce715 r986131d 7 7 int main (void) 8 8 { 9 aubio_init(); 10 9 11 uint_t height = 3, length = 9, i, j; 10 12 // create fmat_t object … … 26 28 // destroy it 27 29 del_fmat(mat); 30 31 aubio_cleanup(); 32 28 33 return 0; 29 34 } -
tests/src/test-fvec.c
r34ce715 r986131d 4 4 int main (void) 5 5 { 6 aubio_init(); 7 6 8 uint_t vec_size = 10, i; 7 9 fvec_t * vec = new_fvec (vec_size); … … 39 41 del_fvec(vec); 40 42 43 aubio_cleanup(); 44 41 45 return 0; 42 46 } -
tests/src/test-lvec.c
r34ce715 r986131d 4 4 int main (void) 5 5 { 6 aubio_init(); 7 6 8 uint_t win_s = 32; // window size 7 9 lvec_t * sp = new_lvec (win_s); // input buffer … … 14 16 lvec_print (sp); 15 17 del_lvec(sp); 18 19 aubio_cleanup(); 20 16 21 return 0; 17 22 } -
tests/src/test-mathutils-window.c
r34ce715 r986131d 4 4 int main (void) 5 5 { 6 aubio_init(); 7 6 8 uint_t length = 0; 7 9 uint_t n_length = 4, n_types = 10, i, t; … … 27 29 } 28 30 } 31 32 aubio_cleanup(); 33 29 34 return 0; 30 35 } -
tests/src/test-mathutils.c
r34ce715 r986131d 114 114 int main (void) 115 115 { 116 aubio_init(); 117 116 118 test_next_power_of_two(); 117 119 test_miditofreq(); 118 120 test_freqtomidi(); 121 122 aubio_cleanup(); 123 119 124 return 0; 120 125 } -
tests/src/utils/test-hist.c
r34ce715 r986131d 5 5 int main (void) 6 6 { 7 aubio_init(); 8 7 9 uint_t length; 8 10 for (length = 1; length < 10; length ++ ) { … … 26 28 del_fvec(t); 27 29 } 30 31 aubio_cleanup(); 32 28 33 return 0; 29 34 } -
tests/src/utils/test-log.c
r34ce715 r986131d 24 24 int main (void) 25 25 { 26 aubio_init(); 27 26 28 fprintf(stdout, "### testing normal logging\n"); 27 29 AUBIO_ERR("testing normal AUBIO_LOG_ERR\n"); … … 57 59 AUBIO_DBG("testing again normal AUBIO_LOG_DBG\n"); 58 60 61 aubio_cleanup(); 62 59 63 return 0; 60 64 } -
tests/src/utils/test-parameter.c
r34ce715 r986131d 25 25 int main (void) 26 26 { 27 aubio_init(); 28 27 29 smpl_t max_value = 100.; 28 30 smpl_t min_value = 0.; … … 67 69 del_aubio_parameter (param); 68 70 71 aubio_cleanup(); 72 69 73 return 0; 70 74 } -
tests/src/utils/test-scale.c
r34ce715 r986131d 5 5 int main (void) 6 6 { 7 aubio_init(); 8 7 9 uint_t n = 0; 8 10 uint_t win_s = 1024; // window size … … 19 21 del_fvec(in); 20 22 23 aubio_cleanup(); 24 21 25 return 0; 22 26 }
Note: See TracChangeset
for help on using the changeset viewer.