comparison Example VamPy plugins/PySpectralCentroid.py @ 70:6c755f3e1173

More fixes
author Chris Cannam
date Mon, 17 Nov 2014 14:07:00 +0000
parents f5b8646494d2
children
comparison
equal deleted inserted replaced
69:f5b8646494d2 70:6c755f3e1173
33 from math import sqrt 33 from math import sqrt
34 34
35 class PySpectralCentroid: 35 class PySpectralCentroid:
36 36
37 def __init__(self,inputSampleRate): 37 def __init__(self,inputSampleRate):
38 self.m_imputSampleRate = 0.0
39 self.m_stepSize = 0 38 self.m_stepSize = 0
40 self.m_blockSize = 0 39 self.m_blockSize = 0
41 self.m_channels = 0 40 self.m_channels = 0
42 self.previousSample = 0.0 41 self.previousSample = 0.0
43 self.m_inputSampleRate = inputSampleRate 42 self.m_inputSampleRate = inputSampleRate