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