Changes in / [55012c4:614963a]
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
interfaces/python/demo_filterbank_slaney.py
r55012c4 r614963a 12 12 from pylab import loglog, title, show, xlim, ylim, xlabel, ylabel 13 13 xlim([0,samplerate / 2]) 14 print f.get_coeffs().shape15 14 times = vstack([arange(win_s / 2 + 1) * samplerate / win_s] * 40) 16 print times.shape17 15 loglog(times.T, f.get_coeffs().T, '.-') 18 16 title('Mel frequency bands coefficients') 19 17 xlim([100, 7500]) 20 18 ylim([1.0e-3, 2.0e-2]) 21 xlabel(' frequency (Hz)')22 ylabel(' amplitude')19 xlabel('Frequency (Hz)') 20 ylabel('Amplitude') 23 21 show() -
interfaces/python/demo_filterbank_triangle_bands.py
r55012c4 r614963a 21 21 xlim([50, samplerate/2]) 22 22 ylim([1.0e-6, 2.0e-2]) 23 ylabel(' amplitude')23 ylabel('Amplitude') 24 24 25 25 ## build a new filterbank … … 42 42 xlim([50, samplerate/2]) 43 43 ylim([1.0e-6, 2.0e-2]) 44 xlabel(' frequency (Hz)')45 ylabel(' amplitude')44 xlabel('Frequency (Hz)') 45 ylabel('Amplitude') 46 46 47 47 show() -
src/tempo/beattracking.c
r55012c4 r614963a 160 160 for (i = 1; i < laglen - 1; i++) { 161 161 for (a = 1; a <= numelem; a++) { 162 for (b = (1 - a); b < a; b++) {162 for (b = (1 - a); b < (sint_t)a; b++) { 163 163 bt->acfout->data[i] += bt->acf->data[a * (i + 1) + b - 1] 164 164 * 1. / (2. * a - 1.); … … 300 300 for (i = 1; i < laglen - 1; i++) { 301 301 for (a = 1; a <= bt->timesig; a++) { 302 for (b = (1 - a); b < a; b++) {302 for (b = (1 - a); b < (sint_t)a; b++) { 303 303 acfout->data[i] += acf->data[a * (i + 1) + b - 1]; 304 304 }
Note: See TracChangeset
for help on using the changeset viewer.