diff options
author | Jamie Bullock <jamie@postlude.co.uk> | 2007-12-29 18:35:35 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@postlude.co.uk> | 2007-12-29 18:35:35 +0000 |
commit | 445505b69a8517b5ab586bfdba2e1c719aa9ef7d (patch) | |
tree | 760251f2e4f7f15b327f41f69eb87838eb97d331 /swig/python | |
parent | eb32acabd365e47e36863ee737505db463bd9f91 (diff) | |
download | LibXtract-445505b69a8517b5ab586bfdba2e1c719aa9ef7d.tar.gz LibXtract-445505b69a8517b5ab586bfdba2e1c719aa9ef7d.tar.bz2 LibXtract-445505b69a8517b5ab586bfdba2e1c719aa9ef7d.zip |
- added bark coefficients PD example
- Fixed Java bindings compile problem
Diffstat (limited to 'swig/python')
-rw-r--r-- | swig/python/test.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/swig/python/test.py b/swig/python/test.py index f7297f8..923adb7 100644 --- a/swig/python/test.py +++ b/swig/python/test.py @@ -34,4 +34,16 @@ xtract.xtract_spectrum(a,len,argv, result) for i in range(len): print result[i] + +print 'Computing windowed subframes...' + +for i in range(0, len): + a[i] = 1.0 + +window = xtract.xtract_init_window(len / 2, xtract.XTRACT_HANN) +xtract.xtract_features_from_subframes(a, len, xtract.XTRACT_WINDOWED, window, result) + +for i in range(len): + print result[i] + print '\nFinished!\n' |