Changeset c4b2183 for python/tests/test_filterbank_mel.py
- Timestamp:
- Apr 25, 2016, 12:53:03 AM (8 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:
- 8bffcff
- Parents:
- fbcee4f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/tests/test_filterbank_mel.py
rfbcee4f rc4b2183 4 4 from numpy.testing import assert_equal, assert_almost_equal 5 5 from numpy import array, shape 6 from aubio import cvec, filterbank 6 from aubio import cvec, filterbank, float_type 7 7 8 8 class aubio_filterbank_mel_test_case(TestCase): … … 28 28 f = filterbank(9, 1024) 29 29 freq_list = [40, 80, 200, 400, 800, 1600, 3200, 6400, 12800, 15000, 24000] 30 freqs = array(freq_list, dtype = 'float32')30 freqs = array(freq_list, dtype = float_type) 31 31 f.set_triangle_bands(freqs, 48000) 32 32 f.get_coeffs().T … … 36 36 f = filterbank(9, 1024) 37 37 freq_list = [40, 80, 200, 400, 800, 1600, 3200, 6400, 12800, 15000, 24000] 38 freqs = array(freq_list, dtype = 'float32')38 freqs = array(freq_list, dtype = float_type) 39 39 f.set_triangle_bands(freqs, 48000) 40 40 f.get_coeffs().T
Note: See TracChangeset
for help on using the changeset viewer.