Mercurial > hg > vampy
diff Example VamPy plugins/PyMFCC.py @ 67:146d14ab15e7
Debug output: off by default, on with VAMPY_VERBOSE environment variable
author | Chris Cannam |
---|---|
date | Mon, 17 Nov 2014 10:03:44 +0000 |
parents | d56f48aafb99 |
children | 44d56a3d16b7 |
line wrap: on
line diff
--- a/Example VamPy plugins/PyMFCC.py Mon Nov 17 09:37:59 2014 +0000 +++ b/Example VamPy plugins/PyMFCC.py Mon Nov 17 10:03:44 2014 +0000 @@ -52,16 +52,16 @@ if self.updated: return self.valid self.updated = True self.valid = False - print 'Updating parameters and recalculating filters: ' - print 'Nyquist: ',self.NqHz +# print 'Updating parameters and recalculating filters: ' +# print 'Nyquist: ',self.NqHz if self.maxHz > self.NqHz : raise Exception('Maximum frequency must be smaller than the Nyquist frequency') self.maxMel = 1000*log(1+self.maxHz/700.0)/log(1+1000.0/700.0) self.minMel = 1000*log(1+self.minHz/700.0)/log(1+1000.0/700.0) - print 'minHz:%s\nmaxHz:%s\nminMel:%s\nmaxMel:%s\n' \ - %(self.minHz,self.maxHz,self.minMel,self.maxMel) +# print 'minHz:%s\nmaxHz:%s\nminMel:%s\nmaxMel:%s\n' \ +# %(self.minHz,self.maxHz,self.minMel,self.maxMel) self.filterMatrix = self.getFilterMatrix(self.inputSize,self.numBands) self.DCTMatrix = self.getDCTMatrix(self.numBands) self.filterIter = self.filterMatrix.__iter__() @@ -124,7 +124,7 @@ def __init__(self,inputSampleRate): # flags for setting some Vampy options - self.vampy_flags = vf_DEBUG | vf_ARRAY | vf_REALTIME + self.vampy_flags = vf_ARRAY | vf_REALTIME self.m_inputSampleRate = int(inputSampleRate) self.m_stepSize = 1024