Changeset 3cd2434 for interfaces/python/demo_filterbank_slaney.py
- Timestamp:
- Jul 16, 2012, 12:43:28 AM (12 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:
- 614963a, 7359775
- Parents:
- 10a6f7d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
interfaces/python/demo_filterbank_slaney.py
r10a6f7d r3cd2434 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()
Note: See TracChangeset
for help on using the changeset viewer.