diff 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
line wrap: on
line diff
--- a/Example VamPy plugins/PySpectralFeatures.py	Mon Oct 05 16:14:25 2009 +0000
+++ b/Example VamPy plugins/PySpectralFeatures.py	Tue Oct 06 09:27:20 2009 +0000
@@ -35,12 +35,12 @@
 		self.m_channels = channels
 		self.m_stepSize = stepSize		
 		self.m_blockSize = blockSize
-		self.prevMag = zeros((blockSize/2)-1)
+		self.prevMag = zeros((blockSize/2))
 		return True
 		
 	def reset(self):
 		# reset any initial conditions
-		self.prevMag = zeros((blockSize/2)-1)
+		self.prevMag = zeros((blockSize/2))
 		return None
 	
 	def getMaker(self):