- Timestamp:
- Nov 26, 2013, 8:09:06 PM (11 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:
- 88fee8f
- Parents:
- 923a7a8
- Location:
- tests/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/spectral/test-mfcc.c
r923a7a8 r39a7b26 13 13 aubio_mfcc_t *o = new_aubio_mfcc (win_s, n_filters, n_coefs, samplerate); 14 14 15 cvec_set (in, 1.);15 cvec_set_all_norm (in, 1.); 16 16 aubio_mfcc_do (o, in, out); 17 17 fvec_print (out); 18 18 19 cvec_set (in, .5);19 cvec_set_all_norm (in, .5); 20 20 aubio_mfcc_do (o, in, out); 21 21 fvec_print (out); -
tests/src/test-cvec.c
r923a7a8 r39a7b26 20 20 21 21 // set all vector elements to `0` 22 cvec_zeros (complex_vector);22 cvec_zeros_norm(complex_vector); 23 23 for ( i = 0; i < complex_vector->length; i++ ) { 24 24 assert( complex_vector->norm[i] == 0. ); … … 28 28 29 29 // set all vector elements to `1` 30 cvec_ones (complex_vector);30 cvec_ones_norm(complex_vector); 31 31 for ( i = 0; i < complex_vector->length; i++ ) { 32 32 assert( complex_vector->norm[i] == 1. ); … … 34 34 } 35 35 cvec_print(complex_vector); 36 37 cvec_zeros(complex_vector); 38 cvec_zeros_phas(complex_vector); 39 cvec_zeros_norm(complex_vector); 40 cvec_ones_norm(complex_vector); 41 cvec_ones_phas(complex_vector); 42 cvec_copy(complex_vector, complex_vector); 43 36 44 // destroy it 37 45 del_cvec(complex_vector);
Note: See TracChangeset
for help on using the changeset viewer.