From 118f47f7c1956b1b8cea6d1598ce83e67f0ed7cc Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 4 Mar 2013 22:04:18 -0500 Subject: [PATCH] tests/demo/plot_mfcc_filterbank.py: replaced by python/demos/demo_filterbank_slaney.py --- tests/demo/plot_mfcc_filterbank.py | 42 ------------------------------ 1 file changed, 42 deletions(-) delete mode 100755 tests/demo/plot_mfcc_filterbank.py diff --git a/tests/demo/plot_mfcc_filterbank.py b/tests/demo/plot_mfcc_filterbank.py deleted file mode 100755 index cb1be907..00000000 --- a/tests/demo/plot_mfcc_filterbank.py +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env python - -import pylab -import numpy -import sys - -from localaubio import * - -win_size = 2048 -channels = 1 -n_filters = 40 -samplerate = 44100 - -filterbank = new_aubio_filterbank_mfcc(n_filters, win_size, samplerate, - 0., samplerate) - -mfcc_filters = [] -for channel in range(n_filters): - vec = aubio_filterbank_getchannel(filterbank,channel) - mfcc_filters.append([]) - for index in range(win_size): - mfcc_filters[channel].append(fvec_read_sample(vec,0,index)) - -doLog=False -if len(sys.argv)>1: - if sys.argv[1]=='log': - doLog=True - -nmat= numpy.array(mfcc_filters) - -pylab.hold(True) - -n_filters=numpy.shape(nmat)[0] -for i in range(n_filters): - if doLog==True: - pylab.semilogx(nmat[i,:]) - else: - pylab.plot(nmat[i,:]) - -pylab.hold(False) -#pylab.savefig('test.png') -pylab.show() -- 2.26.2