- Timestamp:
- Dec 19, 2018, 4:50:33 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master
- Children:
- cbe7809
- Parents:
- ee463f9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/tempo/test-tempo.c
ree463f9 rfd1d4d5 82 82 83 83 // test wrong method fails 84 if (new_aubio_tempo("unexisting_method", win_size, hop_size, samplerate)) 85 return 1; 84 if (new_aubio_tempo("undefined", win_size, hop_size, samplerate)) return 1; 86 85 87 86 // test hop > win fails 88 if (new_aubio_tempo("default", hop_size, win_size, samplerate)) 89 return 1; 87 if (new_aubio_tempo("default", hop_size, win_size, samplerate)) return 1; 90 88 91 89 // test null hop_size fails 92 if (new_aubio_tempo("default", win_size, 0, samplerate)) 93 return 1; 90 if (new_aubio_tempo("default", win_size, 0, samplerate)) return 1; 94 91 95 92 // test 1 buf_size fails 96 if (new_aubio_tempo("default", 1, 1, samplerate)) 97 return 1; 93 if (new_aubio_tempo("default", 1, 1, samplerate)) return 1; 98 94 99 95 // test null samplerate fails 100 if (new_aubio_tempo("default", win_size, hop_size, 0)) 101 return 1; 96 if (new_aubio_tempo("default", win_size, hop_size, 0)) return 1; 102 97 103 98 // test short sizes workaround 104 99 t = new_aubio_tempo("default", 2048, 2048, 500); 105 if (!t) 106 return 1; 100 if (!t) return 1; 107 101 108 102 del_aubio_tempo(t); 109 103 110 104 t = new_aubio_tempo("default", win_size, hop_size, samplerate); 111 if (!t) 112 return 1; 105 if (!t) return 1; 113 106 114 107 in = new_fvec(hop_size);
Note: See TracChangeset
for help on using the changeset viewer.