- Timestamp:
- Sep 16, 2017, 11:55:51 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:
- bfbfafa
- Parents:
- b99e2a5 (diff), cfb7fb7 (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. - Location:
- src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_avcodec.c
rb99e2a5 r7b7a58e 314 314 //av_opt_set_int(avr, "out_sample_fmt", AV_SAMPLE_FMT_FLTP, 0); 315 315 #ifdef HAVE_AVRESAMPLE 316 if ( ( err = avresample_open(avr) ) < 0) {317 #elif defined(HAVE_SWRESAMPLE) 318 if ( ( err = swr_init(avr) ) < 0) {316 if ( ( err = avresample_open(avr) ) < 0) 317 #elif defined(HAVE_SWRESAMPLE) 318 if ( ( err = swr_init(avr) ) < 0) 319 319 #endif /* HAVE_AVRESAMPLE || HAVE_SWRESAMPLE */ 320 { 320 321 char errorstr[256]; 321 322 av_strerror (err, errorstr, sizeof(errorstr)); 322 AUBIO_ERR("source_avcodec: Could not open AVAudioResampleContext for %s (%s)\n",323 AUBIO_ERR("source_avcodec: Could not open resampling context for %s (%s)\n", 323 324 s->path, errorstr); 324 //goto beach;325 325 return; 326 326 } -
src/mathutils.c
rb99e2a5 r7b7a58e 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: -
src/spectral/mfcc.c
rb99e2a5 r7b7a58e 37 37 uint_t win_s; /** grain length */ 38 38 uint_t samplerate; /** sample rate (needed?) */ 39 uint_t n_filters; /** number of *filters */39 uint_t n_filters; /** number of filters */ 40 40 uint_t n_coefs; /** number of coefficients (<= n_filters/2 +1) */ 41 41 aubio_filterbank_t *fb; /** filter bank */ -
src/spectral/phasevoc.c
rb99e2a5 r7b7a58e 142 142 AUBIO_FREE (pv); 143 143 return NULL; 144 } 145 146 uint_t aubio_pvoc_set_window(aubio_pvoc_t *pv, const char_t *window) { 147 return fvec_set_window(pv->w, (char_t*)window); 144 148 } 145 149 -
src/spectral/phasevoc.h
rb99e2a5 r7b7a58e 96 96 uint_t aubio_pvoc_get_hop(aubio_pvoc_t* pv); 97 97 98 /** set window type 99 100 \param pv phase vocoder to set the window type 101 \param window_type a string representing a window 102 103 \return 0 if successful, non-zero otherwise 104 105 */ 106 uint_t aubio_pvoc_set_window(aubio_pvoc_t *pv, const char_t *window_type); 107 98 108 #ifdef __cplusplus 99 109 }
Note: See TracChangeset
for help on using the changeset viewer.