Changeset e1d9cc3
- Timestamp:
- Sep 6, 2017, 1:50:16 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:
- 82f0effd
- Parents:
- 34dca87
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mathutils.c
r34dca87 re1d9cc3 29 29 typedef enum 30 30 { 31 aubio_win_ones, 31 32 aubio_win_rectangle, 32 33 aubio_win_hamming, … … 64 65 AUBIO_ERR ("window type can not be null.\n"); 65 66 return 1; 66 } else if (strcmp (window_type, "rectangle") == 0) 67 } else if (strcmp (window_type, "ones") == 0) 68 wintype = aubio_win_ones; 69 else if (strcmp (window_type, "rectangle") == 0) 67 70 wintype = aubio_win_rectangle; 68 71 else if (strcmp (window_type, "hamming") == 0) … … 89 92 } 90 93 switch(wintype) { 94 case aubio_win_ones: 95 fvec_ones(win); 96 break; 91 97 case aubio_win_rectangle: 92 for (i=0;i<size;i++) 93 w[i] = 0.5; 98 fvec_set_all(win, .5); 94 99 break; 95 100 case aubio_win_hamming:
Note: See TracChangeset
for help on using the changeset viewer.