comparison Example VamPy plugins/PySpectralFeatures.py @ 47:8b2eddf686da

Fix blockSize+2 for frequency domin plugins
author fazekasgy
date Tue, 06 Oct 2009 09:27:20 +0000
parents 27bab3a16c9a
children 93eddad99f3c
comparison
equal deleted inserted replaced
46:af9c4cee95a8 47:8b2eddf686da
33 33
34 def initialise(self,channels,stepSize,blockSize): 34 def initialise(self,channels,stepSize,blockSize):
35 self.m_channels = channels 35 self.m_channels = channels
36 self.m_stepSize = stepSize 36 self.m_stepSize = stepSize
37 self.m_blockSize = blockSize 37 self.m_blockSize = blockSize
38 self.prevMag = zeros((blockSize/2)-1) 38 self.prevMag = zeros((blockSize/2))
39 return True 39 return True
40 40
41 def reset(self): 41 def reset(self):
42 # reset any initial conditions 42 # reset any initial conditions
43 self.prevMag = zeros((blockSize/2)-1) 43 self.prevMag = zeros((blockSize/2))
44 return None 44 return None
45 45
46 def getMaker(self): 46 def getMaker(self):
47 return 'Vampy Example Plugins' 47 return 'Vampy Example Plugins'
48 48