Changeset 65628c4 for tests/src/onset/test-onset.c
- Timestamp:
- Dec 19, 2018, 9:50:33 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
- Children:
- f56f795
- Parents:
- d64f56d (diff), 5573a6b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/onset/test-onset.c
rd64f56d r65628c4 70 70 uint_t samplerate = 44100; 71 71 // hop_size < 1 72 if (new_aubio_onset("default", 5, 0, samplerate)) 73 return 1; 72 if (new_aubio_onset("default", 5, 0, samplerate)) return 1; 73 74 74 // buf_size < 2 75 if (new_aubio_onset("default", 1, 1, samplerate)) 76 return 1; 75 if (new_aubio_onset("default", 1, 1, samplerate)) return 1; 76 77 77 // buf_size < hop_size 78 if (new_aubio_onset("default", hop_size, win_size, samplerate)) 79 return 1; 78 if (new_aubio_onset("default", hop_size, win_size, samplerate)) return 1; 79 80 80 // samplerate < 1 81 if (new_aubio_onset("default", 1024, 512, 0)) 82 return 1; 81 if (new_aubio_onset("default", 1024, 512, 0)) return 1; 83 82 84 83 // specdesc creation failed 85 if (new_aubio_onset("abcd", win_size, win_size/2, samplerate)) 86 return 1; 84 if (new_aubio_onset("abcd", win_size, win_size/2, samplerate)) return 1; 87 85 88 86 aubio_onset_t *o; … … 93 91 94 92 o = new_aubio_onset("default", win_size, hop_size, samplerate); 95 if (!aubio_onset_set_default_parameters(o, "wrong_type")) 96 return 1; 93 if (!aubio_onset_set_default_parameters(o, "wrong_type")) return 1; 97 94 del_aubio_onset(o); 98 95
Note: See TracChangeset
for help on using the changeset viewer.